Esempio n. 1
0
 private static System.ServiceModel.EndpointAddress GetDefaultEndpointAddress()
 {
     return(EmployeeClient.GetEndpointAddress(EndpointConfiguration.BasicHttpBinding_IEmployee));
 }
Esempio n. 2
0
 public EmployeeClient(EndpointConfiguration endpointConfiguration) :
     base(EmployeeClient.GetBindingForEndpoint(endpointConfiguration), EmployeeClient.GetEndpointAddress(endpointConfiguration))
 {
     this.Endpoint.Name = endpointConfiguration.ToString();
     ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
 }