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); }
public CourseLocationList_ServiceClient() : base(CourseLocationList_ServiceClient.GetDefaultBinding(), CourseLocationList_ServiceClient.GetDefaultEndpointAddress()) { this.Endpoint.Name = EndpointConfiguration.CourseLocationList_Service.ToString(); ConfigureEndpoint(this.Endpoint, this.ClientCredentials); }
private static System.ServiceModel.EndpointAddress GetDefaultEndpointAddress() { return(CourseLocationList_ServiceClient.GetEndpointAddress(EndpointConfiguration.CourseLocationList_Service)); }
private static System.ServiceModel.Channels.Binding GetDefaultBinding() { return(CourseLocationList_ServiceClient.GetBindingForEndpoint(EndpointConfiguration.CourseLocationList_Service)); }
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); }
public CourseLocationList_ServiceClient(EndpointConfiguration endpointConfiguration) : base(CourseLocationList_ServiceClient.GetBindingForEndpoint(endpointConfiguration), CourseLocationList_ServiceClient.GetEndpointAddress(endpointConfiguration)) { this.Endpoint.Name = endpointConfiguration.ToString(); ConfigureEndpoint(this.Endpoint, this.ClientCredentials); }