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