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 Namespace » CatWorkflowBuilderExtensions Class

CatWorkflowBuilderExtensions.ProcessCommand<TWorkflowState,TCommand>(this ICatWorkflowBuilder<TWorkflowState>) Method

Adds a step that processes a command. The command is created with its parameterless constructor. Fill it with Input, like .Input(s => s.Name, step => step.Command.Name). A failed command ends the workflow with BreakCascade and the errors of the command.

public static Cat.FluentWorkflows.Abstractions.ICatStepBuilder<TWorkflowState,Cat.FluentWorkflows.Commands.Steps.CatProcessCommandStep<TCommand>> ProcessCommand<TWorkflowState,TCommand>(this Cat.FluentWorkflows.Abstractions.ICatWorkflowBuilder<TWorkflowState> builder)
    where TWorkflowState : class, Cat.FluentWorkflows.Abstractions.ICatWorkflowState<TWorkflowState>
    where TCommand : class, Cat.Commands.Abstractions.ICatCommand;

Type parameters

TWorkflowState

The state of the workflow.

TCommand

The command to process.

Parameters

builder Cat.FluentWorkflows.Abstractions.ICatWorkflowBuilder<TWorkflowState>

The builder to add the step to.

Returns

Cat.FluentWorkflows.Abstractions.ICatStepBuilder<TWorkflowState,Cat.FluentWorkflows.Commands.Steps.CatProcessCommandStep<TCommand>>
A builder to connect the step to the state with Input and Output.