Table of Contents

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
Object
CommandDispatcher
Implements
Inherited Members

Constructors

CommandDispatcher(IServiceLocator)

Initializes a new instance of the CommandDispatcher class.

public CommandDispatcher(IServiceLocator serviceLocator)

Parameters

serviceLocator IServiceLocator

The provider of service implementations.

Methods

Commit(ICommand)

Commits the specified request using Fire-and-Forget/In-Only MEP.

public void Commit(ICommand request)

Parameters

request ICommand

The ICommand to commit.

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 ICommand

The ICommand to commit.

setup Action<AsyncOptions>

The AsyncOptions which may be configured.

Returns

Task

A System.Threading.Tasks.Task that represents the asynchronous operation.

See Also