Пример #1
0
        /// <summary>
        /// 静态构造函数
        /// </summary>
        static WcfClientChannelFactory()
        {
            if (_MyInvokeCache == null)
            {
                _MyInvokeCache = new MB.Util.MyDataCache <string, string>();
            }

            string customInspectorCfg = System.Configuration.ConfigurationManager.AppSettings[CUSTOM_WCF_MSG_INSPECTORS_CONFIG];

            _ClientMessageInspectors = createMessageInspectors(customInspectorCfg);

            if (_WcfInvokeContainer == null)
            {
                _WcfInvokeContainer = new Dictionary <Type, WcfClientInvokeCfgInfo>();
            }
        }
 static WcfClientFactory()
 {
     _MyInvokeCache = new MB.Util.MyDataCache <string, string>();
 }