This is quite similar to what Guard class in many open source projects has been used for. Moreover, fluentvalidations lib provides many other features. You or readers might be interested to take a look.
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).
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
This is quite similar to what Guard class in many open source projects has been used for. Moreover, fluentvalidations lib provides many other features. You or readers might be interested to take a look.
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).