Ejemplo n.º 1
0
        internal static CourseLocationList_ServiceClient CourseLocationListServiceClient(string AccountKey, string SubscriptionKey, AppSettings appSettings)
        {
            var serviceClient = new CourseLocationList_ServiceClient();

            serviceClient.Endpoint.EndpointBehaviors.Add(NewEndpointBehavior(AccountKey, SubscriptionKey));

            //Change the service endpoint address according to which Environment we running on.
            ChangeServiceEndpointAddress(appSettings, serviceClient);

            return(serviceClient);
        }
Ejemplo n.º 2
0
 public CourseLocationList_ServiceClient() :
     base(CourseLocationList_ServiceClient.GetDefaultBinding(), CourseLocationList_ServiceClient.GetDefaultEndpointAddress())
 {
     this.Endpoint.Name = EndpointConfiguration.CourseLocationList_Service.ToString();
     ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
 }
Ejemplo n.º 3
0
 private static System.ServiceModel.EndpointAddress GetDefaultEndpointAddress()
 {
     return(CourseLocationList_ServiceClient.GetEndpointAddress(EndpointConfiguration.CourseLocationList_Service));
 }
Ejemplo n.º 4
0
 private static System.ServiceModel.Channels.Binding GetDefaultBinding()
 {
     return(CourseLocationList_ServiceClient.GetBindingForEndpoint(EndpointConfiguration.CourseLocationList_Service));
 }
Ejemplo n.º 5
0
 public CourseLocationList_ServiceClient(EndpointConfiguration endpointConfiguration, System.ServiceModel.EndpointAddress remoteAddress) :
     base(CourseLocationList_ServiceClient.GetBindingForEndpoint(endpointConfiguration), remoteAddress)
 {
     this.Endpoint.Name = endpointConfiguration.ToString();
     ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
 }
Ejemplo n.º 6
0
 public CourseLocationList_ServiceClient(EndpointConfiguration endpointConfiguration) :
     base(CourseLocationList_ServiceClient.GetBindingForEndpoint(endpointConfiguration), CourseLocationList_ServiceClient.GetEndpointAddress(endpointConfiguration))
 {
     this.Endpoint.Name = endpointConfiguration.ToString();
     ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
 }