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