Inheritance: Microsoft.AspNet.SignalR.Hub
Esempio n. 1
0
        public void Configuration(IAppBuilder app)
        {
            ChatHub.Init();

            Task.Factory.StartNew(
                ChangeHandler.HandleUpdates,
                TaskCreationOptions.LongRunning);

            app.MapSignalR();
        }
Esempio n. 2
0
        public void Configuration(IAppBuilder app)
        {
            ChatHub.Init();
            //Best we can do without async void
            //ChatHubAsync.Init().Wait();

            Task.Factory.StartNew(
                ChangeHandler.HandleUpdates,
                TaskCreationOptions.LongRunning);

            app.MapSignalR();
        }