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

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

            app.MapSignalR();
        }
Example #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();
        }