Ejemplo n.º 1
0
        public MailService(IOptions <AppSettings> options, ILogger <MailService> logger)
        {
            DependencyHelper.ThrowIfNull(options, logger);

            _appSettings = options.Value;
            _logger      = logger;
        }
Ejemplo n.º 2
0
        public SlideService(ISlideRepository slideRepository, IMapper mapper)
        {
            DependencyHelper.ThrowIfNull(mapper, slideRepository);

            _slideRepository = slideRepository;
            _mapper          = mapper;
        }
Ejemplo n.º 3
0
        public AccountRepository(IOptions <AppSettings> config, IMapper mapper) : base(config)
        {
            DependencyHelper.ThrowIfNull(config, mapper);

            _appSettings = config.Value;
            _mapper      = mapper;
        }
Ejemplo n.º 4
0
        public JwtMiddleware(RequestDelegate next, IOptions <AppSettings> appSettings)
        {
            DependencyHelper.ThrowIfNull(next, appSettings);

            _next        = next;
            _appSettings = appSettings.Value;
        }
        public PresentationService(IPresentationRepository presentationRepository, IMapper mapper)
        {
            DependencyHelper.ThrowIfNull(presentationRepository, mapper);

            _presentationRepository = presentationRepository;
            _mapper = mapper;
        }
        public PresentationController(IOptions <AppSettings> options, IPresentationService presentationService,
                                      ISlideService slideService) : base(options)
        {
            DependencyHelper.ThrowIfNull(presentationService, slideService);

            _presentationService = presentationService;
            _slideService        = slideService;
        }
        public UserService(IUserRepository userRepository, IMapper mapper,
                           IOptions <AppSettings> options)
        {
            DependencyHelper.ThrowIfNull(userRepository, mapper, options);

            _userRepository = userRepository;
            _mapper         = mapper;
            _appSettings    = options.Value;
        }
Ejemplo n.º 8
0
        public AccountService(IAccountRepository accountRepository, IOptions <AppSettings> options, IMapper mapper,
                              IMailService mailService)
        {
            DependencyHelper.ThrowIfNull(accountRepository, options, mapper, mailService);

            _accountsRepository = accountRepository;
            _mailService        = mailService;
            _appSettings        = options.Value;
            _mapper             = mapper;
        }
Ejemplo n.º 9
0
        public OptionService(
            IMapper mapper,
            IOptionRepository optionRepository,
            IVotingHubClient votingHubClient,
            IVotingService votingService)
        {
            DependencyHelper.ThrowIfNull(mapper, optionRepository, votingHubClient, votingService);

            _mapper           = mapper;
            _optionRepository = optionRepository;
            _votingHub        = votingHubClient;
            _votingService    = votingService;
        }
Ejemplo n.º 10
0
        public SlideRepository(IOptions <AppSettings> config, IMapper mapper) : base(config)
        {
            DependencyHelper.ThrowIfNull(mapper);

            _mapper = mapper;
        }
Ejemplo n.º 11
0
        public OptionController(IOptions <AppSettings> options, IOptionService optionService) : base(options)
        {
            DependencyHelper.ThrowIfNull(optionService);

            _optionService = optionService;
        }
Ejemplo n.º 12
0
        public UserController(IOptions <AppSettings> options, IUserService userService) : base(options)
        {
            DependencyHelper.ThrowIfNull(userService);

            _userService = userService;
        }
Ejemplo n.º 13
0
        public DeviceMiddleware(RequestDelegate next)
        {
            DependencyHelper.ThrowIfNull(next);

            _next = next;
        }
Ejemplo n.º 14
0
        public BaseController(IOptions <AppSettings> options)
        {
            DependencyHelper.ThrowIfNull(options);

            _appSettings = options.Value;
        }
Ejemplo n.º 15
0
        public VotingService(IHubContext <VotingHub> context)
        {
            DependencyHelper.ThrowIfNull(context);

            _context = context;
        }
Ejemplo n.º 16
0
        public SlideController(IOptions <AppSettings> options, ISlideService slideService) : base(options)
        {
            DependencyHelper.ThrowIfNull(slideService);

            _slideService = slideService;
        }
Ejemplo n.º 17
0
        public UserRepository(IOptions <AppSettings> options, IMapper mapper) : base(options)
        {
            DependencyHelper.ThrowIfNull(options, mapper);

            _mapper = mapper;
        }