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
- Extension Methods
Constructors
CommandPipeline(ICorrelationIdAccessor, ICommandFilters, ICommandHandlerProviders, ICommandResponseValueHandlers, ICommandContextModifier, ICommandContextValuesBuilder, IServiceProvider)
Represents an implementation of ICommandPipeline.
public CommandPipeline(ICorrelationIdAccessor correlationIdAccessor, ICommandFilters commandFilters, ICommandHandlerProviders handlerProviders, ICommandResponseValueHandlers valueHandlers, ICommandContextModifier contextModifier, ICommandContextValuesBuilder contextValuesBuilder, IServiceProvider serviceProvider)
Parameters
correlationIdAccessorICorrelationIdAccessorThe ICorrelationIdAccessor to use for accessing correlation IDs.
commandFiltersICommandFiltersThe ICommandFilters to use for filtering commands.
handlerProvidersICommandHandlerProvidersThe ICommandHandlerProviders to use for finding command handlers.
valueHandlersICommandResponseValueHandlersThe ICommandResponseValueHandlers to use for handling response values.
contextModifierICommandContextModifierThe ICommandContextModifier to use for setting the current command context.
contextValuesBuilderICommandContextValuesBuilderThe ICommandContextValuesBuilder to use for building command context values.
serviceProviderIServiceProviderThe IServiceProvider to use for resolving dependencies.
Methods
Execute(object)
Executes the given command.
public Task<CommandResult> Execute(object command)
Parameters
commandobjectThe command to execute.
Returns
- Task<CommandResult>
A CommandResult representing the result of executing the command.