Exemplo n.º 1
0
        public SchedulerHost(Scheduler scheduler, Action<SchedulerHostConfigurator> closure)
            : base(scheduler)
        {
            this.Scheduler = scheduler;

            SchedulerHostConfiguration configuration = new SchedulerHostConfiguration();
            SchedulerHostConfigurator configurator = new SchedulerHostConfigurator(configuration);

            closure.Invoke(configurator);

            this.Configuration = configuration;
        }
Exemplo n.º 2
0
        public SchedulerHost(Scheduler scheduler, Action <SchedulerHostConfigurator> closure)
            : base(scheduler)
        {
            this.Scheduler = scheduler;

            SchedulerHostConfiguration configuration = new SchedulerHostConfiguration();
            SchedulerHostConfigurator  configurator  = new SchedulerHostConfigurator(configuration);

            closure.Invoke(configurator);

            this.Configuration = configuration;
        }