private static System.ServiceModel.EndpointAddress GetDefaultEndpointAddress() { return(ChatServiceClient.GetEndpointAddress(EndpointConfiguration.BasicHttpBinding_IChatService)); }
private static System.ServiceModel.Channels.Binding GetDefaultBinding() { return(ChatServiceClient.GetBindingForEndpoint(EndpointConfiguration.BasicHttpBinding_IChatService)); }
public ChatServiceClient(EndpointConfiguration endpointConfiguration) : base(ChatServiceClient.GetBindingForEndpoint(endpointConfiguration), ChatServiceClient.GetEndpointAddress(endpointConfiguration)) { this.Endpoint.Name = endpointConfiguration.ToString(); ConfigureEndpoint(this.Endpoint, this.ClientCredentials); }
public ChatServiceClient(EndpointConfiguration endpointConfiguration, System.ServiceModel.EndpointAddress remoteAddress) : base(ChatServiceClient.GetBindingForEndpoint(endpointConfiguration), remoteAddress) { this.Endpoint.Name = endpointConfiguration.ToString(); ConfigureEndpoint(this.Endpoint, this.ClientCredentials); }
public ChatServiceClient() : base(ChatServiceClient.GetDefaultBinding(), ChatServiceClient.GetDefaultEndpointAddress()) { this.Endpoint.Name = EndpointConfiguration.BasicHttpBinding_IChatService.ToString(); ConfigureEndpoint(this.Endpoint, this.ClientCredentials); }