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