Code/SboxSuperuser/Api/CommandHandler.cs

A delegate type defining the shape of a command handler used by the SboxSuperuser API. It represents an async method that takes a CommandContext and CommandArguments and returns a Task of CommandResult.

namespace SboxSuperuser;

/// <summary>Explicit-registration handler shape; registration and execution are not supplied by T02.</summary>
public delegate Task<CommandResult> CommandHandler( CommandContext context, CommandArguments arguments );