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