private static HubConfiguration Configure()
 {
     return(new HubConfiguration
     {
         EnableDetailedErrors = true,
         Resolver = new NinjectDependencyResolver(ServiceBootstrapper.GetInstance().Kernel)
     });
 }
Exemple #2
0
        /// <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());
 }
Exemple #4
0
 public static ServiceBootstrapper GetInstance()
 {
     return(_instance ?? (_instance = new ServiceBootstrapper()));
 }