Пример #1
0
        /// <summary>
        /// Authenticates a user
        /// </summary>
        /// <param name="request">The authentication request</param>
        /// <returns>The authentication response</returns>
        public Task <AuthenticateResponse> Authenticate(AuthenticateRequest request)
        {
            // Encrypt the user's password before sending it across the service bus
            request.Password = _CryptoService.EncryptString(request.Password, _PublicKey);

            return(_ServiceBusService.ExecuteRequestAsync <AuthenticateRequest, AuthenticateResponse>(request));
        }
Пример #2
0
 public Task <CreateCategoryResponse> CreateCategoryAsync(CreateCategoryRequest request)
 {
     return(_ServiceBusService.ExecuteRequestAsync <CreateCategoryRequest, CreateCategoryResponse>(request));
 }
Пример #3
0
 public Task <CreateStatusResponse> CreateStatusAsync(CreateStatusRequest request)
 {
     return(_ServiceBusService
            .ExecuteRequestAsync <CreateStatusRequest, CreateStatusResponse>(request));
 }