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