Interface ICommandHandlerProviders
- Namespace
- Cratis.Applications.Commands
- Assembly
- Cratis.Applications.dll
Defines a system that can provide command handlers from multiple sources.
public interface ICommandHandlerProviders
Properties
Handlers
Gets the collection of command handlers.
IEnumerable<ICommandHandler> Handlers { get; }
Property Value
Methods
TryGetHandlerFor(object, out ICommandHandler?)
Tries to get a handler for the given command.
bool TryGetHandlerFor(object command, out ICommandHandler? handler)
Parameters
command
objectCommand to handle.
handler
ICommandHandlerHandler for the command, if found.
Returns
- bool
True if a handler was found; otherwise, false.