Exemplo n.º 1
0
        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());
        }
Exemplo n.º 2
0
        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());
        }