public async Task <ResponseData <ValidateUserResult> > ValidateUserNameAndPassword(string userName, string userPasswordHash) { ManageUserServiceClient client = new ManageUserServiceClient(); ResponseData <ValidateUserResult> responseData = new ResponseData <ValidateUserResult>(); try { responseData = await client.ValidateUserNameAndPasswordAsync(userName, userPasswordHash); } catch (Exception ex) { Console.WriteLine(ex.Message.ToString()); responseData.responseCode = (int)ResponseStatusEnum.APIError; responseData.responseStatusDescription = "API Error"; responseData.responseResults = null; } return(responseData); }
public ManageUserServiceClient(EndpointConfiguration endpointConfiguration, System.ServiceModel.EndpointAddress remoteAddress) : base(ManageUserServiceClient.GetBindingForEndpoint(endpointConfiguration), remoteAddress) { this.Endpoint.Name = endpointConfiguration.ToString(); ConfigureEndpoint(this.Endpoint, this.ClientCredentials); }
public ManageUserServiceClient(EndpointConfiguration endpointConfiguration) : base(ManageUserServiceClient.GetBindingForEndpoint(endpointConfiguration), ManageUserServiceClient.GetEndpointAddress(endpointConfiguration)) { this.Endpoint.Name = endpointConfiguration.ToString(); ConfigureEndpoint(this.Endpoint, this.ClientCredentials); }
public ManageUserServiceClient() : base(ManageUserServiceClient.GetDefaultBinding(), ManageUserServiceClient.GetDefaultEndpointAddress()) { this.Endpoint.Name = EndpointConfiguration.BasicHttpBinding_IManageUserService.ToString(); ConfigureEndpoint(this.Endpoint, this.ClientCredentials); }
private static System.ServiceModel.EndpointAddress GetDefaultEndpointAddress() { return(ManageUserServiceClient.GetEndpointAddress(EndpointConfiguration.BasicHttpBinding_IManageUserService)); }
private static System.ServiceModel.Channels.Binding GetDefaultBinding() { return(ManageUserServiceClient.GetBindingForEndpoint(EndpointConfiguration.BasicHttpBinding_IManageUserService)); }