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