| 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
ICatSwitchCaseBuilder<TWorkflowState,TSwitchValue>.Case Method
| Overloads | |
|---|---|
| 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. |
ICatSwitchCaseBuilder<TWorkflowState,TSwitchValue>.Case(TSwitchValue) Method
Adds a case without steps of its own. It runs the steps of the next case that has some, like a fall through.
void Case(TSwitchValue testValue);
Parameters
testValue TSwitchValue
The value to match.
Exceptions
System.Exception
The value is already used by another case.
ICatSwitchCaseBuilder<TWorkflowState,TSwitchValue>.Case(TSwitchValue, Action<ICatWorkflowBuilder<TWorkflowState>>) Method
Adds a case with its steps.
void Case(TSwitchValue testValue, System.Action<Cat.FluentWorkflows.Abstractions.ICatWorkflowBuilder<TWorkflowState>> caseBuilder);
Parameters
testValue TSwitchValue
The value to match.
caseBuilder System.Action<Cat.FluentWorkflows.Abstractions.ICatWorkflowBuilder<TWorkflowState>>
Adds the steps.
Exceptions
System.Exception
The value is already used by another case.