设置没有app.config文件的Microsoft Web Services 3配置

时间:2018-08-14 09:02:28

标签: c# app-config

我想为Microsoft.Web.Services3.WebServicesClientProtocol实例设置一些设置。我知道我可以在app.config文件中设置这些设置。但是由于我正在处理的项目类型无法使用此文件,因此我想知道是否还有另一种定义这些设置的方法。例如硬编码。我要设置下面显示的设置:

<microsoft.web.services3>
    <security>
        <binarySecurityTokenManager>
            <add valueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3">
                <keyAlgorithm name="RSA15"/>
            </add>
        </binarySecurityTokenManager>
    </security>
    <diagnostics>
        <trace enabled="true" input="InputTrace.webinfo" output="OutputTrace.webinfo"/>
        <detailedErrors enabled="true"/>
    </diagnostics>
</microsoft.web.services3>

0 个答案:

没有答案
相关问题