Esempio n. 1
0
        public static void Configuration(IAppBuilder app)
        {
            var reg = new SchedulerRegistry();

            var holder = reg.GetScheduler(Guid.Empty);

            holder.Scheduler.Notify(new Modulation(new JobKey(Guid.NewGuid()), 1D));

            GlobalHost.DependencyResolver.Register(typeof(SchedulerHub), () => new SchedulerHub(reg));

            app.UseCors(CorsOptions.AllowAll);
            app.MapSignalR();
        }
Esempio n. 2
0
 public SchedulerHub(SchedulerRegistry reg)
 {
     _reg = reg;
 }