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