Esempio n. 1
0
        public void RegisterPermissionChecker(Type type, CommandPermissionChecker permissionChecker)
        {
            _permissionCheckers[type] = permissionChecker;

            HasPermissionChecker         = true;
            HasExternalPermissionChecker = true;
        }
Esempio n. 2
0
        public void RegisterPermissionChecker <TType>(CommandPermissionChecker <TType> permissionChecker)
            where TType : CommandPermissionAttribute
        {
            _permissionCheckers[typeof(TType)] = permissionChecker;

            HasPermissionChecker         = true;
            HasExternalPermissionChecker = true;
        }