示例#1
0
        public static PCServiceClientSettings GetConfig()
        {
            PCServiceClientSettings settings = (PCServiceClientSettings)ConfigurationBroker.GetSection("pcServiceClientSettings");

            ConfigurationExceptionHelper.CheckSectionNotNull(settings, "pcServiceClientSettings");

            return(settings);
        }
示例#2
0
        /// <remarks/>
        private PermissionCenterQueryService()
        {
            PCServiceBrokerContext.Current.InitWebClientProtocol(this);

            this.Url = PCServiceClientSettings.GetConfig().QueryServiceAddress.ToString();

            if ((this.IsLocalFileSystemWebService(this.Url) == true))
            {
                this.UseDefaultCredentials = true;
                this.useDefaultCredentialsSetExplicitly = false;
            }
            else
            {
                this.useDefaultCredentialsSetExplicitly = true;
            }
        }
示例#3
0
 protected override SchemaObjectServiceSettingsBase GetSettings()
 {
     return(PCServiceClientSettings.GetConfig());
 }
示例#4
0
        protected override void InitProperties()
        {
            base.InitProperties();

            this.WithLock = PCServiceClientSettings.GetConfig().WithLock;
        }