Exemplo n.º 1
0
        //    public ICurrentUnitOfWorkProvider CurrentUnitOfWorkProvider { get; set; }

        /// <summary>
        /// Constructor.
        /// </summary>
        public PermissionChecker(SmdUserManager <TRole, TUser> userManager)
        {
            _userManager = userManager;

            Logger     = NullLogger.Instance;
            SmdSession = NullSmdSession.Instance;
        }
Exemplo n.º 2
0
        /// <summary>
        /// Constructor.
        /// </summary>
        public PermissionManager(
            IAuthorizationConfiguration authorizationConfiguration)
        {
            _authorizationConfiguration = authorizationConfiguration;

            SmdSession = NullSmdSession.Instance;
        }