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