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