Class CommandRegistry
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
Methods
GetCommand(string)
Look up a command by name (case-insensitive).
public IChannelCommand? GetCommand(string name)
Parameters
namestring
Returns
Register(IChannelCommand)
Register a command.
public void Register(IChannelCommand command)
Parameters
commandIChannelCommand