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   |

Plans for Cat.Decorators

Open question for the existing Cat.Decorators module: in which order do the decorators of different modules run?
Status: not started. Cat.Decorators itself exists. This plan collects what we know. The open questions need an answer before the build.

Contents

The idea

More modules will ship decorators: transactions, authorization, and probably tracing, caching and auditing. Each one is optional, and a developer picks the ones they want. The order matters. A transaction must wrap the handler but not the cache. Authorization should run before validation does any work. Today the developer has to know this and add the decorators in the right sequence.

What we already know

From the module readme:

From the plans:

Decisions and open questions

Decided

Topic Decision
How order works today The order in which you add decorators sets the order. See the Cat.Decorators readme.

Open

Questions before building

  1. Do we only document a recommended order, or add an order number?
  2. Do we want a startup check for decorators?
  3. Where does the recommended order live?
  4. Which decorators do we expect first, and in what order should they run?