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