Example #1
0
 private static System.ServiceModel.EndpointAddress GetDefaultEndpointAddress()
 {
     return(ContactServiceClient.GetEndpointAddress(EndpointConfiguration.BasicHttpBinding_IContactService));
 }
Example #2
0
 public ContactServiceClient(EndpointConfiguration endpointConfiguration) :
     base(ContactServiceClient.GetBindingForEndpoint(endpointConfiguration), ContactServiceClient.GetEndpointAddress(endpointConfiguration))
 {
     this.Endpoint.Name = endpointConfiguration.ToString();
     ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
 }