Closed ggmueller closed 2 years ago
No reason that I'm aware of. It's a bit of an interesting setup, but if it works... it works
Carter 6 will use ICarterModule
still does not work, DependencyContextAssemblyCatalog.GetAssemblies does not include nested classes
When using the following configuration in the Startup:
services.AddCarter()
Carter does not consider Nested Classes as modules that it configures.Registering nested classes explicitly works.
It seems like this is due to this LINQ condition in the code:
In a quick test changing this piece of code to also consider type with
t.IsNestedPublic
in the debugger also registered the nested classes.Is the restriction of types to only outer types intended?