NancyFx / Nancy

Lightweight, low-ceremony, framework for building HTTP based services on .Net and Mono
http://nancyfx.org
MIT License
7.15k stars 1.47k forks source link

internal NancyModules are not registered. #2960

Closed ByronMayne closed 5 years ago

ByronMayne commented 5 years ago

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