View on GitHub
Clean Architecture Toolkit for .NET
Clean Architecture Toolkit is a clean, modular architecture foundation for .NET applications.
It embraces SOLID principles and focuses on maintainability, testability, and scalability through clear boundaries and pluggable design.

|   HOME   |   MODULE OVERVIEW   |   DEMO   |   CAT.FLUENTWORKFLOWS   |

Code Reference

» Cat.FluentWorkflows.Commands Assembly » Cat.FluentWorkflows.Commands.Steps Namespace

CatProcessCommandStep<TCommand> Class

Built-in step behind ProcessCommand. It processes a command with the command processor. A succeeded command continues the workflow. A failed command ends it with BreakCascade and the errors.

public class CatProcessCommandStep<TCommand> : Cat.FluentWorkflows.CatStepBodyAsync
    where TCommand : class, Cat.Commands.Abstractions.ICatCommand

Type parameters

TCommand

The command to process.

Inheritance System.Object → CatStepBodyAsync → CatProcessCommandStep<TCommand>

Constructors  
CatProcessCommandStep(ICatCommandProcessor, ILogger<CatProcessCommandStep<TCommand>>) Creates the step and the command, using the parameterless constructor of the command.
Fields  
_commandProcessor  
Properties  
Command The command to process. Fill its members with Input.
Response The response of the command. Read it with Output after the step ran.
Methods  
RunAsync(CancellationToken) Runs the step.