/// <summary> /// Starts the application /// </summary> public static void Start() { DynamicModuleUtility.RegisterModule(typeof(OnePerRequestModule)); DynamicModuleUtility.RegisterModule(typeof(HttpApplicationInitializationModule)); Bootstrapper.Initialize(CreateKernel); AutoMapperConfig.Configure(); }
public static void Startup() { _ninjectBootstrapper = new NinjectBootstrapper(); try { _ninjectBootstrapper.Initialize(CreateKernel); } catch { /* catches error on second test run - needs investigation */ } PostStart(); }
private static NinjectBootstrapper _ninjectBootstrapper;// = new NinjectBootstrapper(); public static void Startup() { _ninjectBootstrapper = new NinjectBootstrapper(); try { _ninjectBootstrapper.Initialize(CreateKernel); } catch { /* catches error on second test run - needs investigation */ } PostStart(); }