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