Class DispatchResult
Result of a command dispatch operation.
public class DispatchResult
- Inheritance
-
DispatchResult
- Inherited Members
Properties
CommandOverload
The executed command overload (if matched).
public CommandDefinition? CommandOverload { get; set; }
Property Value
ParsedArguments
Parsed argument values for the command (if successfully matched).
public object?[]? ParsedArguments { get; set; }
Property Value
- object[]
Response
The response code.
public DispatchResponse Response { get; }
Property Value
UsedCommandName
The actual command name/path used as input (e.g., "msg" if an alias was used).
public string UsedCommandName { get; set; }
Property Value
Methods
CreateInvalidArguments()
Creates an "invalid arguments" result.
public static DispatchResult CreateInvalidArguments()
Returns
CreateNotFound()
Creates a "command not found" result.
public static DispatchResult CreateNotFound()
Returns
CreatePermissionDenied()
Creates a "permission denied" result.
public static DispatchResult CreatePermissionDenied()
Returns
CreateSuccess()
Creates a successful result.
public static DispatchResult CreateSuccess()