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