public ServicePermissionChecker(IUserPermissionChecker permissionChecker)
        {
            if (permissionChecker is null)
            {
                throw new ArgumentNullException(nameof(permissionChecker));
            }

            this.permissionChecker = permissionChecker;
        }
 /// <summary>
 /// constructor
 /// </summary>
 /// <param name="configuration"></param>
 /// <param name="appUserService"></param>
 /// <param name="httpContextAccessor"></param>
 /// <param name="userPermissionChecker"></param>
 /// <param name="emailSender"></param>
 /// <param name="imageFileService"></param>
 /// <param name="captchaService"></param>
 public AppUserControllerBase(IConfiguration configuration, IAppUserService appUserService, IHttpContextAccessor httpContextAccessor, IUserPermissionChecker userPermissionChecker, IEmailSender emailSender, IImageFileService imageFileService, ICaptchaService captchaService)
 {
     Configuration          = configuration;
     _appUserService        = appUserService;
     _userPermissionChecker = userPermissionChecker;
     _httpContextAccessor   = httpContextAccessor;
     _emailSender           = emailSender;
     _imageFileService      = imageFileService;
     _captchaService        = captchaService;
 }
Beispiel #3
0
        public UserService(
            IUserStore <UserEf> store,
            IOptions <IdentityOptions> optionsAccessor,
            IPasswordHasher <UserEf> passwordHasher,
            IEnumerable <IUserValidator <UserEf> > userValidators,
            IEnumerable <IPasswordValidator <UserEf> > passwordValidators,
            ILookupNormalizer keyNormalizer,
            IdentityErrorDescriber errors,
            IServiceProvider services,
            ILogger <UserManager <UserEf> > logger,
            IUserPermissionChecker permissionChecker)
            : base(store, optionsAccessor, passwordHasher, userValidators, passwordValidators, keyNormalizer, errors, services, logger)
        {
            if (permissionChecker is null)
            {
                throw new ArgumentNullException(nameof(permissionChecker));
            }

            this.permissionChecker = permissionChecker;
        }
 /// <summary>
 /// constructor
 /// </summary>
 /// <param name="userPermissionChecker"></param>
 public UserScopeCheckEnabledControllerBase(IUserPermissionChecker userPermissionChecker)
 {
     _userPermissionChecker = userPermissionChecker;
 }
Beispiel #5
0
 /// <summary>
 /// constructor
 /// </summary>
 /// <param name="userPermissionChecker"></param>
 /// <param name="appUserService"></param>
 public UserGroupPermissionHandler(IUserPermissionChecker userPermissionChecker, IAppUserService appUserService) : base()
 {
     _userPermissionChecker = userPermissionChecker;
     _appUserService        = appUserService;
 }
 /// <summary>
 /// constructor
 /// </summary>
 /// <param name="audioService"></param>
 /// <param name="userPermissionChecker"></param>
 /// <param name="appUserService"></param>
 /// <param name="configuration"></param>
 public RecitationController(IRecitationService audioService, IUserPermissionChecker userPermissionChecker, IAppUserService appUserService, IConfiguration configuration)
 {
     _audioService          = audioService;
     _userPermissionChecker = userPermissionChecker;
     _appUserService        = appUserService;
 }
Beispiel #7
0
 /// <summary>
 /// constructor
 /// </summary>
 /// <param name="configuration"></param>
 /// <param name="appUserService"></param>
 /// <param name="httpContextAccessor"></param>
 /// <param name="userPermissionChecker"></param>
 /// <param name="emailSender"></param>
 /// <param name="imageFileService"></param>
 /// <param name="captchaService"></param>
 public AppUserController(IConfiguration configuration, IAppUserService appUserService, IHttpContextAccessor httpContextAccessor, IUserPermissionChecker userPermissionChecker, IEmailSender emailSender, IImageFileService imageFileService, ICaptchaService captchaService)
     : base(configuration, appUserService, httpContextAccessor, userPermissionChecker, emailSender, imageFileService, captchaService)
 {
 }
Beispiel #8
0
 public ServicePermissionCheckerStub(IUserPermissionChecker permissionChecker)
     : base(permissionChecker)
 {
 }