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