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