Table of Contents

Class CommandPipeline

Namespace
Cratis.Applications.Commands
Assembly
Cratis.Applications.dll

Represents an implementation of ICommandPipeline.

[Singleton]
public class CommandPipeline : ICommandPipeline
Inheritance
CommandPipeline
Implements
Inherited Members

Constructors

CommandPipeline(ICorrelationIdAccessor, ICommandFilters, ICommandHandlerProviders, ICommandResponseValueHandlers, IServiceProvider)

Represents an implementation of ICommandPipeline.

public CommandPipeline(ICorrelationIdAccessor correlationIdAccessor, ICommandFilters commandFilters, ICommandHandlerProviders handlerProviders, ICommandResponseValueHandlers valueHandlers, IServiceProvider serviceProvider)

Parameters

correlationIdAccessor ICorrelationIdAccessor

The ICorrelationIdAccessor to use for accessing correlation IDs.

commandFilters ICommandFilters

The ICommandFilters to use for filtering commands.

handlerProviders ICommandHandlerProviders

The ICommandHandlerProviders to use for finding command handlers.

valueHandlers ICommandResponseValueHandlers

The ICommandResponseValueHandlers to use for handling response values.

serviceProvider IServiceProvider

The IServiceProvider to use for resolving dependencies.

Methods

Execute(object)

Executes the given command.

public Task<CommandResult> Execute(object command)

Parameters

command object

The command to execute.

Returns

Task<CommandResult>

A CommandResult representing the result of executing the command.