Exemple #1
0
        /// <summary>
        /// 初始化
        /// </summary>
        /// <param name="configuration">配置</param>
        public static void Initialize(Configuration.Configuration configuration)
        {
            #region # 验证

            if (configuration == null)
            {
                throw new ArgumentNullException(nameof(configuration), "配置不可为空!");
            }

            #endregion

            _Setting = (ServiceModelSectionGroup)configuration.GetSectionGroup("system.serviceModel.client") ??
                       (ServiceModelSectionGroup)configuration.GetSectionGroup("system.serviceModel");
        }
Exemple #2
0
 /// <summary>
 /// 静态构造器
 /// </summary>
 static ServiceModelSectionGroup()
 {
     _Setting = null;
 }