示例#1
0
 private static System.ServiceModel.EndpointAddress GetDefaultEndpointAddress(string endpointAddress)
 {
     return(AuthorizerInternalClient.GetEndpointAddress(EndpointConfiguration.BasicHttpBinding_IAuthorizerInternal, endpointAddress));
 }
示例#2
0
 private static System.ServiceModel.Channels.Binding GetDefaultBinding()
 {
     return(AuthorizerInternalClient.GetBindingForEndpoint(EndpointConfiguration.BasicHttpBinding_IAuthorizerInternal));
 }
示例#3
0
 public AuthorizerInternalClient(EndpointConfiguration endpointConfiguration, string endpointAddress) :
     base(AuthorizerInternalClient.GetBindingForEndpoint(endpointConfiguration), AuthorizerInternalClient.GetEndpointAddress(endpointConfiguration, endpointAddress))
 {
     this.Endpoint.Name = endpointConfiguration.ToString();
     ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
 }
示例#4
0
        //public AuthorizerInternalClient(EndpointConfiguration endpointConfiguration, string remoteAddress) :
        //        base(AuthorizerInternalClient.GetBindingForEndpoint(endpointConfiguration), new System.ServiceModel.EndpointAddress(remoteAddress))
        //{
        //    this.Endpoint.Name = endpointConfiguration.ToString();
        //    ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
        //}

        public AuthorizerInternalClient(EndpointConfiguration endpointConfiguration, System.ServiceModel.EndpointAddress remoteAddress) :
            base(AuthorizerInternalClient.GetBindingForEndpoint(endpointConfiguration), remoteAddress)
        {
            this.Endpoint.Name = endpointConfiguration.ToString();
            ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
        }
示例#5
0
 public AuthorizerInternalClient(string endpointAddress) :
     base(AuthorizerInternalClient.GetDefaultBinding(), AuthorizerInternalClient.GetDefaultEndpointAddress(endpointAddress))
 {
     this.Endpoint.Name = EndpointConfiguration.BasicHttpBinding_IAuthorizerInternal.ToString();
     ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
 }