martinothamar / Mediator

A high performance implementation of Mediator pattern in .NET using source generators.
MIT License
2.16k stars 71 forks source link

Diagnostics for missing usage of a command/query? #151

Open EluciusFTW opened 5 months ago

EluciusFTW commented 5 months ago

I a recent project I was working on, I discovered to my big surprise that a command/commandhandler was never used, i.e., nowhere in the application that command was sent out.

Would it make sense to add diagnostics for this case as well in order to make it easier to discover dead code?

MaxLevs commented 5 months ago

It would help as an optional tool. E.x. some analyzer to run.