Esempio n. 1
0
 private static void initialize_module(ModuleEntryPoint entryPoint, IWebApiController controller)
 {
     try
     {
         entryPoint(controller);
     }
     catch (Exception ex)
     {
         string msg = "Failed to initialize module '{0}'".Fmt(entryPoint.Method.Name);
         TraceLogger.WriteLine(ex.FormatHierarchy(msg, true, true));
     }
 }
Esempio n. 2
0
 public static void SetApiController(this HttpContext http, IWebApiController controller)
 {
     http.Items[_controllerKey] = controller;
 }