Пример #1
0
        private ProxyTracker()
        {
            System.ServiceModel.EndpointAddress  address = new System.ServiceModel.EndpointAddress("http://trackviewerservice.cloudapp.net/TrackService.svc");// new System.ServiceModel.EndpointAddress("http://127.0.0.1:81/TrackService.svc");
            System.ServiceModel.BasicHttpBinding binding = new System.ServiceModel.BasicHttpBinding(System.ServiceModel.BasicHttpSecurityMode.None);

            client = new Services.TrackService.TrackServiceClient(binding, address);
        }
Пример #2
0
 private static System.ServiceModel.EndpointAddress GetDefaultEndpointAddress()
 {
     return(TrackServiceClient.GetEndpointAddress(EndpointConfiguration.BasicHttpBinding_ITrackService));
 }
Пример #3
0
 private static System.ServiceModel.Channels.Binding GetDefaultBinding()
 {
     return(TrackServiceClient.GetBindingForEndpoint(EndpointConfiguration.BasicHttpBinding_ITrackService));
 }
Пример #4
0
 public TrackServiceClient(EndpointConfiguration endpointConfiguration, System.ServiceModel.EndpointAddress remoteAddress) :
     base(TrackServiceClient.GetBindingForEndpoint(endpointConfiguration), remoteAddress)
 {
     this.Endpoint.Name = endpointConfiguration.ToString();
     ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
 }
Пример #5
0
 public TrackServiceClient(EndpointConfiguration endpointConfiguration) :
     base(TrackServiceClient.GetBindingForEndpoint(endpointConfiguration), TrackServiceClient.GetEndpointAddress(endpointConfiguration))
 {
     this.Endpoint.Name = endpointConfiguration.ToString();
     ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
 }
Пример #6
0
 public TrackServiceClient() :
     base(TrackServiceClient.GetDefaultBinding(), TrackServiceClient.GetDefaultEndpointAddress())
 {
     this.Endpoint.Name = EndpointConfiguration.BasicHttpBinding_ITrackService.ToString();
     ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
 }