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