jbogard / MediatR.Extensions.Microsoft.DependencyInjection

MediatR extensions for Microsoft.Extensions.DependencyInjection
MIT License
327 stars 89 forks source link

Added option to pass a function to evaluate types for binding #107

Closed noocyte closed 2 years ago

noocyte commented 2 years ago

Ref #106

Allows the consumer to pass a function to evaluate types considered for binding. This makes it possible to include/exclude on for example namespace.

I added a simple test to prove that it works. All other tests pass, proving that I did not mess anything up.

jbogard commented 2 years ago

I like the idea here, but can you modify it to use the MediatRServiceConfiguration object instead? That way we don't have to add any additional overloads (that was the goal behind that object).

noocyte commented 2 years ago

@jbogard - Changed it to use config object - is that what you had in mind?

noocyte commented 2 years ago

@jbogard - I understand and respect that you have a lot going on and this is not your day-job. And yet I'm nagging you to move this PR forward.