Show / Hide Table of Contents

Interface IFrameworkCommandDispatcher

Base interface for command dispatch. Most people should use the derived ICommandDispatcher interface. This interface is primarily intended to allow decorators to be built with IoC containers that require a build step.

If a deferred dispatcher is not registered then the command will also be run at the point of dispatch.

This allows for configuration based behaviour modification.

Namespace: AzureFromTheTrenches.Commanding.Abstractions
Assembly: AzureFromTheTrenches.Commanding.Abstractions.dll
Syntax
public interface IFrameworkCommandDispatcher

Properties

| Improve this Doc View Source

AssociatedExecuter

The dispatchers associated executer

Declaration
ICommandExecuter AssociatedExecuter { get; }
Property Value
Type Description
ICommandExecuter

Methods

| Improve this Doc View Source

DispatchAsync(ICommand, CancellationToken)

Dispatches a command with no expected payload result

Declaration
Task<CommandResult> DispatchAsync(ICommand command, CancellationToken cancellationToken = null)
Parameters
Type Name Description
ICommand command

The command

CancellationToken cancellationToken

Optional cancellation token

Returns
Type Description
Task<CommandResult>

Command result

| Improve this Doc View Source

DispatchAsync<TResult>(ICommand<TResult>, CancellationToken)

Dispatches a command and returns the response

Declaration
Task<CommandResult<TResult>> DispatchAsync<TResult>(ICommand<TResult> command, CancellationToken cancellationToken = null)
Parameters
Type Name Description
ICommand<TResult> command

The command

CancellationToken cancellationToken

Optional cancellation token

Returns
Type Description
Task<CommandResult<TResult>>

Command result

Type Parameters
Name Description
TResult

Result of the command

  • Improve this Doc
  • View Source
  • 0 Comments
Back to top Copyright © 2018 James Randall