Table of Contents

Class CommandRegistry

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

Thread-safe in-memory command registry.

public sealed class CommandRegistry : ICommandRegistry
Inheritance
CommandRegistry
Implements
Inherited Members

Properties

Commands

All registered commands.

public IReadOnlyList<IChannelCommand> Commands { get; }

Property Value

IReadOnlyList<IChannelCommand>

Methods

GetCommand(string)

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

public IChannelCommand? GetCommand(string name)

Parameters

name string

Returns

IChannelCommand

Register(IChannelCommand)

Register a command.

public void Register(IChannelCommand command)

Parameters

command IChannelCommand