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