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