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.Abstractions Assembly » Cat.FluentWorkflows.Abstractions Namespace » ICatWorkflowProcessor Interface

ICatWorkflowProcessor.RunAsync<TWorkflow,TWorkflowState>(TWorkflowState, CancellationToken) Method

Builds the workflow, runs its steps on the given state and returns the outcome. A BreakFromCurrentFlowOnly result is reported as Continue.

System.Threading.Tasks.Task<Cat.FluentWorkflows.Abstractions.ICatWorkflowResponse> RunAsync<TWorkflow,TWorkflowState>(TWorkflowState workflowState, System.Threading.CancellationToken cancellationToken)
    where TWorkflow : Cat.FluentWorkflows.Abstractions.ICatWorkflow<TWorkflowState>
    where TWorkflowState : class, Cat.FluentWorkflows.Abstractions.ICatWorkflowState<TWorkflowState>;

Type parameters

TWorkflow

The workflow to run. It must be registered.

TWorkflowState

The state of the workflow.

Parameters

workflowState TWorkflowState

The state the steps work on. Read it afterwards to get the results.

cancellationToken System.Threading.CancellationToken

Token to cancel the work.

Returns

System.Threading.Tasks.Task<ICatWorkflowResponse>
The result of the last step that ran, with the errors of every step that ran.