Пример #1
0
 private static System.ServiceModel.EndpointAddress GetDefaultEndpointAddress()
 {
     return(MessageBrokerServiceClient.GetEndpointAddress(EndpointConfiguration.BasicHttpBinding_IMessageBrokerService));
 }
Пример #2
0
 public MessageBrokerServiceClient(EndpointConfiguration endpointConfiguration) :
     base(MessageBrokerServiceClient.GetBindingForEndpoint(endpointConfiguration), MessageBrokerServiceClient.GetEndpointAddress(endpointConfiguration))
 {
     this.Endpoint.Name = endpointConfiguration.ToString();
     ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
 }