Hide

YetaWF.Core Package Documentation

Display
Print

YetaWF.Core.Support.BuiltinCommands.Add Method

Adds a built-in command.

Class: YetaWF.Core.Support.BuiltinCommands
Namespace: YetaWF.Core.Support
Assembly: YetaWF.Core

Syntax

public static void Add(
    string url,
    string resourceName,
    Func<QueryHelper,Task> func );

Parameters

url

Defines the URL used to invoke the command being added. E.g., "/$this-is-a-test".

resourceName

The resource name used to protect the built-in command. Only users/roles with the specified resource name enabled have access to this command. In demo mode, the command is always protected and cannot be used.

func

The callback invoked when the specified command is used.

See Also YetaWF.Core.Support.BuiltinCommands ClassYetaWF.Core Overview