Table of Contents

Interface ICommandRegistry

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

Registry of all available channel commands. Channel adapters query this to register platform-native commands.

public interface ICommandRegistry

Properties

Commands

All registered commands.

IReadOnlyList<IChannelCommand> Commands { get; }

Property Value

IReadOnlyList<IChannelCommand>

Methods

GetCommand(string)

Look up a command by name (case-insensitive).

IChannelCommand? GetCommand(string name)

Parameters

name string

Returns

IChannelCommand

Register(IChannelCommand)

Register a command.

void Register(IChannelCommand command)

Parameters

command IChannelCommand