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