Hide

YetaWF.Core Package Documentation

Display
Print

YetaWF.Core.Support.BuiltinCommands.FindAsync Method

Used to locate a built-in command based on its URL.

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

Syntax

public static Task<Func<QueryHelper,Task>?> FindAsync(
    string url,
    bool checkAuthorization = true );

Parameters

url

The URL of the built-in command.

checkAuthorization

true to check for authorization, be checking whether the use/role has the required resource name defined. Or false otherwise, which means no authorization checking is performed.

Return Value

The callback to run the command. null is returned if the URL doesn't map to a built-in command.

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