コード例 #1
0
ファイル: Reference.cs プロジェクト: tompru/ShopWebApi
 private static System.ServiceModel.EndpointAddress GetDefaultEndpointAddress()
 {
     return(ClientServiceClient.GetEndpointAddress(EndpointConfiguration.BasicHttpBinding_IClientService));
 }
コード例 #2
0
ファイル: Reference.cs プロジェクト: tompru/ShopWebApi
 public ClientServiceClient(EndpointConfiguration endpointConfiguration) :
     base(ClientServiceClient.GetBindingForEndpoint(endpointConfiguration), ClientServiceClient.GetEndpointAddress(endpointConfiguration))
 {
     this.Endpoint.Name = endpointConfiguration.ToString();
     ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
 }