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