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