Пример #1
0
 private static System.ServiceModel.EndpointAddress GetDefaultEndpointAddress()
 {
     return(DBServiceClient.GetEndpointAddress(EndpointConfiguration.MybasicHttpBinding));
 }
Пример #2
0
 private static System.ServiceModel.Channels.Binding GetDefaultBinding()
 {
     return(DBServiceClient.GetBindingForEndpoint(EndpointConfiguration.MybasicHttpBinding));
 }
Пример #3
0
 public DBServiceClient(EndpointConfiguration endpointConfiguration) :
     base(DBServiceClient.GetBindingForEndpoint(endpointConfiguration), DBServiceClient.GetEndpointAddress(endpointConfiguration))
 {
     this.Endpoint.Name = endpointConfiguration.ToString();
     ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
 }
Пример #4
0
 public DBServiceClient(EndpointConfiguration endpointConfiguration, System.ServiceModel.EndpointAddress remoteAddress) :
     base(DBServiceClient.GetBindingForEndpoint(endpointConfiguration), remoteAddress)
 {
     this.Endpoint.Name = endpointConfiguration.ToString();
     ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
 }
Пример #5
0
 public DBServiceClient() :
     base(DBServiceClient.GetDefaultBinding(), DBServiceClient.GetDefaultEndpointAddress())
 {
     this.Endpoint.Name = EndpointConfiguration.MybasicHttpBinding.ToString();
     ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
 }