예제 #1
0
 private static System.ServiceModel.EndpointAddress GetDefaultEndpointAddress()
 {
     return(SupplierServiceClient.GetEndpointAddress(EndpointConfiguration.BasicHttpBinding_ISupplierService));
 }
예제 #2
0
 private static System.ServiceModel.Channels.Binding GetDefaultBinding()
 {
     return(SupplierServiceClient.GetBindingForEndpoint(EndpointConfiguration.BasicHttpBinding_ISupplierService));
 }
예제 #3
0
 public SupplierServiceClient(EndpointConfiguration endpointConfiguration) :
     base(SupplierServiceClient.GetBindingForEndpoint(endpointConfiguration), SupplierServiceClient.GetEndpointAddress(endpointConfiguration))
 {
     this.Endpoint.Name = endpointConfiguration.ToString();
     ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
 }
예제 #4
0
 public SupplierServiceClient(EndpointConfiguration endpointConfiguration, System.ServiceModel.EndpointAddress remoteAddress) :
     base(SupplierServiceClient.GetBindingForEndpoint(endpointConfiguration), remoteAddress)
 {
     this.Endpoint.Name = endpointConfiguration.ToString();
     ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
 }
예제 #5
0
 public SupplierServiceClient() :
     base(SupplierServiceClient.GetDefaultBinding(), SupplierServiceClient.GetDefaultEndpointAddress())
 {
     this.Endpoint.Name = EndpointConfiguration.BasicHttpBinding_ISupplierService.ToString();
     ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
 }