Exemple #1
0
 public LoginUserCommandHandler(IUsersCommandService usersCommandService, IUsersQueryService usersQueryService, IJwtManager jwtManager, IMemoryCache cache)
 {
     _usersCommandService = usersCommandService;
     _usersQueryService   = usersQueryService;
     _jwtManager          = jwtManager;
     _cache = cache;
 }
 public AuthenticationController(
     IUsersQueryService users,
     ITokenProvider tokens)
 {
     this.users  = users;
     this.tokens = tokens;
 }
 public OrderOpsService(
     IUsersQueryService usersQueryService,
     IOrdersCommandService ordersCommandService,
     IAddressCommandService addressCommandService,
     IOrdersQueryService ordersQueryService)
 {
     this.usersQueryService     = usersQueryService;
     this.ordersCommandService  = ordersCommandService;
     this.addressCommandService = addressCommandService;
     this.ordersQueryService    = ordersQueryService;
 }
Exemple #4
0
 public UsersController(IApplicationContext applicationContext,
                        IUsersQueryService usersQueryService)
 {
     _applicationContext = applicationContext;
     _usersQueryService  = usersQueryService;
 }
Exemple #5
0
 public UsersController(IUsersQueryService usersQueryService, ICommandDispatcher commandDispatcher)
     : base(commandDispatcher)
 {
     _usersQueryService = usersQueryService;
 }
 public UsersController(IUsersQueryService usersQueryService, IUsersCommandService usersCommandService, IMapper mapper)
 {
     _usersQueryService   = usersQueryService ?? throw new ArgumentNullException(nameof(usersQueryService));
     _usersCommandService = usersCommandService ?? throw new ArgumentNullException(nameof(usersCommandService));
     _mapper = mapper ?? throw new ArgumentNullException(nameof(mapper));
 }