示例#1
0
 public AddSolutionCommandHandler(ISolutionRepository solutionRepository, IUnitOfWork unitOfWork, IMediator mediator, HttpAuthorizeHandler httpAuthorizeHandler)
 {
     _solutionRepository   = solutionRepository;
     _unitOfWork           = unitOfWork;
     _mediator             = mediator;
     _httpAuthorizeHandler = httpAuthorizeHandler;
 }
示例#2
0
        public async Task <BaseDto> Logout([FromServices] HttpAuthorizeHandler httpAuthorizeHandler)
        {
            await httpAuthorizeHandler.SignOutAsync();

            return(new BaseDto()
            {
                IsSuccess = true, Msg = "操作成功"
            });
        }
示例#3
0
 public LoginCommandHandler(IManagerUserRepository managerUserRepository, HttpAuthorizeHandler httpAuthorizeHandler)
 {
     _managerUserRepository = managerUserRepository;
     _httpAuthorizeHandler  = httpAuthorizeHandler;
 }
示例#4
0
 public AddManagerUserHandler(IManagerUserRepository managerUserRepository, IUnitOfWork unitOfWork, HttpAuthorizeHandler httpAuthorizeHandler)
 {
     _managerUserRepository = managerUserRepository;
     _unitOfWork            = unitOfWork;
     _httpAuthorizeHandler  = httpAuthorizeHandler;
 }
示例#5
0
 public AllSolutionQueryHandler(ISolutionRepository solutionRepository, HttpAuthorizeHandler httpAuthorizeHandler)
 {
     _solutionRepository   = solutionRepository;
     _httpAuthorizeHandler = httpAuthorizeHandler;
 }
示例#6
0
 public UserInfoQueryHandler(HttpAuthorizeHandler httpAuthorizeHandler, IManagerUserRepository managerUserRepository)
 {
     _httpAuthorizeHandler  = httpAuthorizeHandler;
     _managerUserRepository = managerUserRepository;
 }