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