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