DEV Community

loading...

Discussion on: Introducing Gate Classes (Design Pattern)

Collapse
jamesmh profile image
James Hickey Author

Yes. If people are getting into a CQRS or use case style architecture, then using Mediatr is a fantastic tool.

You can register pre-processor handlers that run before each handler. These gate classes I'm discussing can easily be converted as a pre-processor handler (that's essentially the same pattern).