Class CommandDispatcher
- Namespace
- Savvyio.Commands
- Assembly
- Savvyio.Commands.dll
Provides a default implementation of of the ICommandDispatcher interface.
public class CommandDispatcher : FireForgetDispatcher, ICommandDispatcher, IDispatcher
- Inheritance
-
ObjectCommandDispatcher
- Implements
- Inherited Members
Constructors
CommandDispatcher(IServiceLocator)
Initializes a new instance of the CommandDispatcher class.
public CommandDispatcher(IServiceLocator serviceLocator)
Parameters
serviceLocator
IServiceLocatorThe provider of service implementations.
Methods
Commit(ICommand)
Commits the specified request
using Fire-and-Forget/In-Only MEP.
public void Commit(ICommand request)
Parameters
CommitAsync(ICommand, Action<AsyncOptions>)
Commits the specified request
asynchronous using Fire-and-Forget/In-Only MEP.
public Task CommitAsync(ICommand request, Action<AsyncOptions> setup = null)
Parameters
request
ICommandThe ICommand to commit.
setup
Action<AsyncOptions>The AsyncOptions which may be configured.
Returns
- Task
A System.Threading.Tasks.Task that represents the asynchronous operation.