Class CommandHandler
- Namespace
- Savvyio.Commands
- Assembly
- Savvyio.Commands.dll
Provides a generic and consistent way of handling Command objects that implements the ICommand interface. This is an abstract class.
public abstract class CommandHandler : ICommandHandler, IFireForgetHandler<ICommand>, IHandler<ICommand>, IHandler
- Inheritance
-
ObjectCommandHandler
- Implements
Constructors
CommandHandler()
Initializes a new instance of the CommandHandler class.
protected CommandHandler()
Properties
Delegates
Gets the activator responsible for invoking delegates that handles ICommand.
public IFireForgetActivator<ICommand> Delegates { get; }
Property Value
- IFireForgetActivator<ICommand>
The activator responsible for invoking delegates that handles ICommand.
Methods
RegisterDelegates(IFireForgetRegistry<ICommand>)
Registers the delegates responsible for handling types that implements the ICommand interface.
protected abstract void RegisterDelegates(IFireForgetRegistry<ICommand> handlers)
Parameters
handlers
IFireForgetRegistry<ICommand>The registry that store the delegates of type ICommand.