private static void CreateNegotiationContext(NancyModule module, NancyContext context) { // TODO - not sure if this should be here or not, but it'll do for now :) context.NegotiationContext = new NegotiationContext { ModuleName = module.GetModuleName(), ModulePath = module.ModulePath, }; }
public static ViewLocationContext GetViewLocationContext(this NancyModule mod) { return(new ViewLocationContext { ModulePath = mod.ModulePath, ModuleName = mod.GetModuleName(), Context = mod.Context }); }