ipjohnson / Grace.DependencyInjection.Extensions

Grace Extensions for ASP.Net Core
19 stars 7 forks source link

compatibility change for asp.net core #9

Open ipjohnson opened 6 years ago

ipjohnson commented 6 years ago

Grace auto registers concrete types where as microsoft's container does not. This can cause some odd behavior with logging and possible other issue.

I'm going to add the following configuration to block microsoft types from being auto registered.

scope.Configure(c =>
            {
                c.ExcludeTypeFromAutoRegistration("Microsoft.*");
            });