jbogard / MediatR

Simple, unambitious mediator implementation in .NET
Apache License 2.0
10.84k stars 1.15k forks source link

Would you consider a PR for a Roslyn component? #1001

Closed mrpmorris closed 4 months ago

mrpmorris commented 5 months ago

If I wrote a Roslyn component that scanned for all the types that services.AddMediatR would be interested in so they are all pre-collected in an auto-generated class type, and then have a services.AddMediatR overload that took an array of these classes, would that be something you might be interested in?

I'm not sure how much bootstrap time this would save when scaling up web services for large apps, or if it might be useful for AOT.

What do you think?

PS: Pleased to get issue 1001 :)

jbogard commented 4 months ago

Would Roslyn be able to do the more sophisticated type checking that's in the scanning today?