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