| 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.Queries Assembly » Cat.FluentWorkflows.Queries.Steps Namespace
CatProcessQueryStep<TQuery,TResult> Class
Built-in step behind ProcessQuery. It processes a query with the query processor.
A succeeded query continues the workflow. A failed query ends it with BreakCascade and the errors.
public class CatProcessQueryStep<TQuery,TResult> : Cat.FluentWorkflows.CatStepBodyAsync
where TQuery : class, Cat.Queries.Abstractions.ICatQuery<TResult>
Type parameters
TQuery
The query to process.
TResult
The type of the data the query returns.
Inheritance System.Object → CatStepBodyAsync → CatProcessQueryStep<TQuery,TResult>
| Constructors | |
|---|---|
| CatProcessQueryStep(ICatQueryProcessor, ILogger<CatProcessQueryStep<TQuery,TResult>>) | Creates the step and the query, using the parameterless constructor of the query. |
| Fields | |
|---|---|
| _queryProcessor |
| Properties | |
|---|---|
| Query | The query to process. Fill its members with Input. |
| Response | The response of the query. Read it with Output after the step ran. |
| Methods | |
|---|---|
| RunAsync(CancellationToken) | Runs the step. |