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