Пример #1
0
 private static System.ServiceModel.EndpointAddress GetDefaultEndpointAddress()
 {
     return(MagacinServiceClient.GetEndpointAddress(EndpointConfiguration.BasicHttpBinding_IMagacinService));
 }
Пример #2
0
 private static System.ServiceModel.Channels.Binding GetDefaultBinding()
 {
     return(MagacinServiceClient.GetBindingForEndpoint(EndpointConfiguration.BasicHttpBinding_IMagacinService));
 }
Пример #3
0
 public MagacinServiceClient(EndpointConfiguration endpointConfiguration) :
     base(MagacinServiceClient.GetBindingForEndpoint(endpointConfiguration), MagacinServiceClient.GetEndpointAddress(endpointConfiguration))
 {
     this.Endpoint.Name = endpointConfiguration.ToString();
     ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
 }
Пример #4
0
 public MagacinServiceClient(EndpointConfiguration endpointConfiguration, System.ServiceModel.EndpointAddress remoteAddress) :
     base(MagacinServiceClient.GetBindingForEndpoint(endpointConfiguration), remoteAddress)
 {
     this.Endpoint.Name = endpointConfiguration.ToString();
     ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
 }
Пример #5
0
 public MagacinServiceClient() :
     base(MagacinServiceClient.GetDefaultBinding(), MagacinServiceClient.GetDefaultEndpointAddress())
 {
     this.Endpoint.Name = EndpointConfiguration.BasicHttpBinding_IMagacinService.ToString();
     ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
 }