Closed Bouke closed 1 year ago
This documentation page actually doesn't refer to the third-party MediatR library. Half way the document, the IMediator interface is defined. Very likely, the interface defined on this page is different from that defined by MediatR.
Might be useful, though, to add a comment in first code sample that notes that the IMediator interface is defined below.
I was just coming back to this PR to retract it, as indeed it is sitting just there. My bad. I got confused reading about MediatR; we already do CQRS but not through MediatR, so I skipped some parts. I guess it becomes clearer to me now. Sorry for the bother.
I'll add a comment, because it is likely more developers will trip over this.
It wasn't immediately clear that the example is implementing the third-party
MediatR.IMediator
interface.