예제 #1
0
 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,
                                      };
 }
예제 #2
0
 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,
     };
 }
예제 #3
0
 public static ViewLocationContext GetViewLocationContext(this NancyModule mod)
 {
     return(new ViewLocationContext
     {
         ModulePath = mod.ModulePath,
         ModuleName = mod.GetModuleName(),
         Context = mod.Context
     });
 }