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