Esempio n. 1
0
        public static void Start()
        {
            DynamicModuleUtility.RegisterModule(typeof(HubModule));

            // Replace defaults with asp.net implementations
            var typeResolver = new BuildManagerTypeResolver();
            var hubLocator = new BuildManagerTypeLocator();

            DependencyResolver.Register(typeof(IHubTypeResolver), () => typeResolver);
            DependencyResolver.Register(typeof(IHubLocator), () => hubLocator);

            TransportManager.InitializeDefaultTransports();
        }
Esempio n. 2
0
        public static void Start()
        {
            DynamicModuleUtility.RegisterModule(typeof(HubModule));

            // Replace defaults with asp.net implementations
            var typeResolver = new BuildManagerTypeResolver();
            var hubLocator   = new BuildManagerTypeLocator();

            DependencyResolver.Register(typeof(IHubTypeResolver), () => typeResolver);
            DependencyResolver.Register(typeof(IHubLocator), () => hubLocator);


            TransportManager.InitializeDefaultTransports();
        }