コード例 #1
0
 private static System.ServiceModel.EndpointAddress GetDefaultEndpointAddress()
 {
     return(TripServiceClient.GetEndpointAddress(EndpointConfiguration.BasicHttpBinding_ITripService));
 }
コード例 #2
0
 private static System.ServiceModel.Channels.Binding GetDefaultBinding()
 {
     return(TripServiceClient.GetBindingForEndpoint(EndpointConfiguration.BasicHttpBinding_ITripService));
 }
コード例 #3
0
 public TripServiceClient(EndpointConfiguration endpointConfiguration) :
     base(TripServiceClient.GetBindingForEndpoint(endpointConfiguration), TripServiceClient.GetEndpointAddress(endpointConfiguration))
 {
     this.Endpoint.Name = endpointConfiguration.ToString();
     ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
 }
コード例 #4
0
 public TripServiceClient(EndpointConfiguration endpointConfiguration, System.ServiceModel.EndpointAddress remoteAddress) :
     base(TripServiceClient.GetBindingForEndpoint(endpointConfiguration), remoteAddress)
 {
     this.Endpoint.Name = endpointConfiguration.ToString();
     ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
 }
コード例 #5
0
 public TripServiceClient() :
     base(TripServiceClient.GetDefaultBinding(), TripServiceClient.GetDefaultEndpointAddress())
 {
     this.Endpoint.Name = EndpointConfiguration.BasicHttpBinding_ITripService.ToString();
     ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
 }