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