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

ICatSwitchCaseBuilder<TWorkflowState,TSwitchValue> Interface

Describes the cases of a switch step.

public interface ICatSwitchCaseBuilder<TWorkflowState,TSwitchValue>
    where TWorkflowState : class, Cat.FluentWorkflows.Abstractions.ICatWorkflowState<TWorkflowState>
    where TSwitchValue : struct

Type parameters

TWorkflowState

The state of the workflow.

TSwitchValue

The type of the value being switched on.

Methods  
Case(TSwitchValue) Adds a case without steps of its own. It runs the steps of the next case that has some, like a fall through.
Case(TSwitchValue, Action<ICatWorkflowBuilder<TWorkflowState>>) Adds a case with its steps.
Default(Action<ICatWorkflowBuilder<TWorkflowState>>) Adds the steps to run when no case matches.