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