What is the issue?
Right now if your NancyModules are non-public they will not be registered.
Why would you want that?
I am creating a service that deals with a lot of internal types that are injected as dependencies. Since the types are internal the modules with constructors that take references to them must also be internal. Since they are internal they are not registered.
How could this be fixed?
Class: AssemblyExtensions
Line: 24
From: assembly.GetExportedTypes();
To: assembly.GetTypes();
Footnotes
I was also trying to find a way to hand them with my own reflection utilities but I was struggling to find a clean method. I was also unable to find anything in the documentation.
What is the issue? Right now if your NancyModules are non-public they will not be registered.
Why would you want that? I am creating a service that deals with a lot of internal types that are injected as dependencies. Since the types are internal the modules with constructors that take references to them must also be internal. Since they are internal they are not registered.
How could this be fixed? Class: AssemblyExtensions Line: 24 From: assembly.GetExportedTypes(); To: assembly.GetTypes();
Footnotes I was also trying to find a way to hand them with my own reflection utilities but I was struggling to find a clean method. I was also unable to find anything in the documentation.
Version:1.4.5.0