Beispiel #1
0
        public void RegisterPermissionChecker(Type type, CommandPermissionChecker permissionChecker)
        {
            _permissionCheckers[type] = permissionChecker;

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

            HasPermissionChecker         = true;
            HasExternalPermissionChecker = true;
        }