public void Configuration(IAppBuilder app) { ChatHub.Init(); Task.Factory.StartNew( ChangeHandler.HandleUpdates, TaskCreationOptions.LongRunning); app.MapSignalR(); }
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(); }