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