You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Cake Frosting container registration does not support open generics. It throws an exception because the call to IsAssignableFrom fails on line 22 of RegistrationBuilder.
Open generic example:
services.RegisterType(typeof(Logger<>)).As(typeof(ILogger<>)).Singleton();
I have a simple work around at the moment where I just register everything explicitly as there is not that many registrations to do.
There are several examples online of code which claims to create an IsAssignableFrom that supports open generics. Would you accept a pull request that adds support for this?
The text was updated successfully, but these errors were encountered:
The Cake Frosting container registration does not support open generics. It throws an exception because the call to IsAssignableFrom fails on line 22 of RegistrationBuilder.
Open generic example:
services.RegisterType(typeof(Logger<>)).As(typeof(ILogger<>)).Singleton();
I have a simple work around at the moment where I just register everything explicitly as there is not that many registrations to do.
There are several examples online of code which claims to create an IsAssignableFrom that supports open generics. Would you accept a pull request that adds support for this?
The text was updated successfully, but these errors were encountered: