Пример #1
0
 private static System.ServiceModel.EndpointAddress GetDefaultEndpointAddress()
 {
     return(ProductServiceClient.GetEndpointAddress(EndpointConfiguration.BasicHttpBinding_IProductService));
 }
Пример #2
0
 public ProductServiceClient(EndpointConfiguration endpointConfiguration) :
     base(ProductServiceClient.GetBindingForEndpoint(endpointConfiguration), ProductServiceClient.GetEndpointAddress(endpointConfiguration))
 {
     this.Endpoint.Name = endpointConfiguration.ToString();
     ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
 }