Пример #1
0
        public ClaimCreateHandler(ConfigurationDbContext configurationDbContext)
        {
            _configurationDbContext = configurationDbContext;

            var appSettings = new AppSettings();

            DataAccessConstants = appSettings.DataAccessConstants;
        }
Пример #2
0
        public RoleCreateHandler(RoleManager <IdentityRole> roleManager, IMediator mediator)
        {
            _roleManager = roleManager;
            _mediator    = mediator;

            var appSettings = new AppSettings();

            DataAccessConstants = appSettings.DataAccessConstants;
        }
Пример #3
0
        public RemoveRoleHandler(
            UserManager <ApplicationUser> userManager,
            RoleManager <IdentityRole> roleManager,
            IMediator mediator)
        {
            _userManager = userManager;
            _roleManager = roleManager;
            _mediator    = mediator;

            var appSettings = new AppSettings();

            DataAccessConstants = appSettings.DataAccessConstants;
        }