コード例 #1
0
        public StudioXRoleManager(
            StudioXRoleStore <TRole, TUser> store,
            IEnumerable <IRoleValidator <TRole> > roleValidators,
            ILookupNormalizer keyNormalizer,
            IdentityErrorDescriber errors,
            ILogger <StudioXRoleManager <TRole, TUser> > logger,
            IHttpContextAccessor contextAccessor,
            IPermissionManager permissionManager,
            ICacheManager cacheManager,
            IUnitOfWorkManager unitOfWorkManager,
            IRoleManagementConfig roleManagementConfig)
            : base(
                store,
                roleValidators,
                keyNormalizer,
                errors,
                logger,
                contextAccessor)
        {
            this.permissionManager = permissionManager;
            this.cacheManager      = cacheManager;
            this.unitOfWorkManager = unitOfWorkManager;

            RoleManagementConfig = roleManagementConfig;
            StudioXStore         = store;
            StudioXSession       = NullStudioXSession.Instance;
            LocalizationManager  = NullLocalizationManager.Instance;
        }
コード例 #2
0
        /// <summary>
        /// Constructor.
        /// </summary>
        protected StudioXRoleManager(
            StudioXRoleStore <TRole, TUser> store,
            IPermissionManager permissionManager,
            IRoleManagementConfig roleManagementConfig,
            ICacheManager cacheManager,
            IUnitOfWorkManager unitOfWorkManager)
            : base(store)
        {
            this.permissionManager = permissionManager;
            this.cacheManager      = cacheManager;
            this.unitOfWorkManager = unitOfWorkManager;

            RoleManagementConfig = roleManagementConfig;
            StudioXStore         = store;
            StudioXSession       = NullStudioXSession.Instance;
            LocalizationManager  = NullLocalizationManager.Instance;
        }