BizTalk WCF LOB适配器:我可以有可自定义的方案名称

时间:2019-04-20 05:02:45

标签: c# configuration biztalk machine.config wcf-lob-adapter

WCF Lob适配器项目项目创建此文件。 我想将SCHEMESERVICENAMSPACE的值保留在machine.configBTSNTSvc64.exe.config

有可能吗?如果没有,我如何保持其可自定义设置。

using Microsoft.ServiceModel.Channels.Common;
/// -----------------------------------------------------------------------------------------------------------
/// Module      :  MyFirstInboundAdapter.cs
/// Description :  The main adapter class which inherits from Adapter
/// -----------------------------------------------------------------------------------------------------------

using System;
using System.ServiceModel.Description;

namespace MyFirstInboundAdapterApp
{
    public class MyFirstInboundAdapter : Adapter
    {
        // Scheme associated with the adapter
        internal const string SCHEME = "TheDefaultScheme";
        // Namespace for the proxy that will be generated from the adapter schema
        internal const string SERVICENAMESPACE = "TheDefaultScheme://FirstInboundAdapterNamespace;
        // Initializes the AdapterEnvironmentSettings class
        static AdapterEnvironmentSettings environmentSettings = new AdapterEnvironmentSettings();
    }
}

0 个答案:

没有答案