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

            ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
        }
예제 #2
0
 private static System.ServiceModel.EndpointAddress GetDefaultEndpointAddress()
 {
     return(SampleServiceClient.GetEndpointAddress(EndpointConfiguration.BasicHttpBinding));
 }
예제 #3
0
 private static System.ServiceModel.Channels.Binding GetDefaultBinding()
 {
     return(SampleServiceClient.GetBindingForEndpoint(EndpointConfiguration.BasicHttpBinding));
 }
예제 #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);
 }
예제 #5
0
 public SampleServiceClient(EndpointConfiguration endpointConfiguration) :
     base(SampleServiceClient.GetBindingForEndpoint(endpointConfiguration), SampleServiceClient.GetEndpointAddress(endpointConfiguration))
 {
     this.Endpoint.Name = endpointConfiguration.ToString();
     ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
 }