Пример #1
0
        public UserService(
            IUserRepository repository,
            IUserFactory factory,
            IAppUserManager userManager,
            IWebsiteInfo websiteInfo)
        {
            repository.CheckArgumentIsNull(nameof(repository));
            _repository = repository;

            factory.CheckArgumentIsNull(nameof(factory));
            _factory = factory;

            userManager.CheckArgumentIsNull(nameof(userManager));
            _userManager = userManager;

            websiteInfo.CheckArgumentIsNull(nameof(websiteInfo));
            _websiteInfo = websiteInfo;
        }
Пример #2
0
        public DbInitializerService(
            IOptionsSnapshot <BehlogSetting> settings,
            IAppUserManager userManager,
            ILogger <IDbInitializer> logger,
            IAppRoleManager roleManager,
            IServiceScopeFactory scopeFactory,
            IDateService dateSvc,
            ILanguageService languageSvc,
            ILayoutService layoutSvc,
            IWebsiteService websiteSvc
            )
        {
            logger.CheckArgumentIsNull();
            _logger = logger;

            settings.CheckArgumentIsNull();
            _settings = settings;

            userManager.CheckArgumentIsNull();
            _userManager = userManager;

            logger.CheckArgumentIsNull();
            logger = _logger;

            roleManager.CheckArgumentIsNull();
            _roleManager = roleManager;

            scopeFactory.CheckArgumentIsNull();
            _scopeFactory = scopeFactory;

            dateSvc.CheckArgumentIsNull();
            _dateSvc = dateSvc;

            languageSvc.CheckArgumentIsNull();
            _languageSvc = languageSvc;

            layoutSvc.CheckArgumentIsNull();
            _layoutSvc = layoutSvc;

            websiteSvc.CheckArgumentIsNull();
            _websiteSvc = websiteSvc;
        }
Пример #3
0
        public LoginController(
            ILogger <LoginController> logger,
            IAppSignInManager signInManager,
            IAppUserManager userManager,
            IOptionsSnapshot <BehlogSetting> appSettings,
            IDateService dateService,
            IWebsiteInfo websiteInfo
            )
        {
            logger.CheckArgumentIsNull();
            signInManager.CheckArgumentIsNull();
            userManager.CheckArgumentIsNull();
            appSettings.CheckArgumentIsNull();
            dateService.CheckArgumentIsNull();
            websiteInfo.CheckArgumentIsNull();

            _logger        = logger;
            _signInManager = signInManager;
            _userManager   = userManager;
            _appSettings   = appSettings;
            _dateService   = dateService;
            _websiteInfo   = websiteInfo;
        }