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