Exemple #1
0
        public SampleServiceClient() :
            base(SampleServiceClient.GetDefaultBinding(), SampleServiceClient.GetDefaultEndpointAddress())
        {
            this.Endpoint.Name = EndpointConfiguration.BasicHttpBinding.ToString();

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