Table of Contents

Class GatewayCommandDispatcher

Namespace
JD.AI.Core.Commands
Assembly
JD.AI.Core.dll

Shared command fast-path parser/executor for gateway channels. Keeps command dispatch logic centralized so channel adapters and bridge integrations can reuse one source of truth.

public static class GatewayCommandDispatcher
Inheritance
GatewayCommandDispatcher
Inherited Members

Methods

TryDispatchAsync(ICommandRegistry?, string, string, string, string, string?, CancellationToken)

public static Task<CommandDispatchResult> TryDispatchAsync(ICommandRegistry? commandRegistry, string channelType, string message, string invokerId, string channelId, string? invokerDisplayName = null, CancellationToken ct = default)

Parameters

commandRegistry ICommandRegistry
channelType string
message string
invokerId string
channelId string
invokerDisplayName string
ct CancellationToken

Returns

Task<CommandDispatchResult>