jbogard / MediatR.Extensions.Microsoft.DependencyInjection

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

Include namespaces on binding setup #106

Open noocyte opened 2 years ago

noocyte commented 2 years ago

We have a very specific use-case where we want to only bind our MediatR classes from certain namespaces, sort of like the assembly support today. Is this too specific to be considered into the package? The inital call would look something like this:

services.AddMediatR(typeof(Ping).GetTypeInfo().Assembly, "IncludedNamespace");