1

WCF Lob 适配器项目项创建此文件。我想将SCHEMEandSERVICENAMSPACE值保留在machine.configorBTSNTSvc64.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();
    }
}
4

0 回答 0