public void Configuration(IAppBuilder app) { app.UseCors(CorsOptions.AllowAll); var hubConfiguration = new HubConfiguration(); hubConfiguration.EnableDetailedErrors = true; app.MapSignalR(hubConfiguration); DataEngine dataEngine = new DataEngine(100); System.Threading.Tasks.Task.Factory.StartNew(async () => await dataEngine.OnDataMonitor()); }
public void Configuration(IAppBuilder app) { app.UseCors(CorsOptions.AllowAll); var hubConfiguration = new HubConfiguration(); hubConfiguration.EnableDetailedErrors = true; app.MapSignalR(hubConfiguration); DataEngine dataEngine = new DataEngine(100); System.Threading.Tasks.Task.Factory.StartNew(async() => await dataEngine.OnDataMonitor()); }