private static HubConfiguration Configure() { return(new HubConfiguration { EnableDetailedErrors = true, Resolver = new NinjectDependencyResolver(ServiceBootstrapper.GetInstance().Kernel) }); }
/// <summary> /// Starts the application /// </summary> public static void Start() { DynamicModuleUtility.RegisterModule(typeof(OnePerRequestHttpModule)); DynamicModuleUtility.RegisterModule(typeof(NinjectHttpModule)); _bootstrapper = ServiceBootstrapper.GetInstance(); GlobalConfiguration.Configuration.DependencyResolver = new NinjectDependencyResolver(_bootstrapper.Kernel); }
public static ServiceBootstrapper GetInstance() { return _instance ?? ( _instance = new ServiceBootstrapper()); }
public static ServiceBootstrapper GetInstance() { return(_instance ?? (_instance = new ServiceBootstrapper())); }