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