Show / Hide Table of Contents

Interface ICommandHandler<TCommand, TResult>

Can be implemented to provide basic command handling capabilites where a result is required

Namespace: AzureFromTheTrenches.Commanding.Abstractions
Assembly: AzureFromTheTrenches.Commanding.Abstractions.dll
Syntax
public interface ICommandHandler<in TCommand, TResult> : ICommandHandler, ICommandHandlerBase where TCommand : ICommand<TResult>
Type Parameters
Name Description
TCommand

The type of the command

TResult

The result type of the command

Methods

| Improve this Doc View Source

ExecuteAsync(TCommand, TResult)

Executes the command

Declaration
Task<TResult> ExecuteAsync(TCommand command, TResult previousResult)
Parameters
Type Name Description
TCommand command

The command

TResult previousResult

The previous result set by the last (if any) command in the handler chain. Will be default(TResult) if the first command in the pipeline.

Returns
Type Description
Task<TResult>

An awaitable task

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