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