NancyModule ad with generics
Is it possible to create a nancy module like this:
public class TypeParamModule<Type1, Type2, Type3> : NancyModule
{
public TypeParamModule()
{
Get["/"] = parameters =>
{
//action here
}
}
}
If possible, where to set the type parameters. Can I "hard" register the module somewhere in the bootloader?
Thank!
+3
source to share