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