Пример #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();
        }
Пример #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();
        }