Beispiel #1
0
        private void Bootstrapper()
        {
            this.c_logger        = new AM.Scheduler.Infrastructure.Logger().LoggerInstance;
            this.c_configuration = new AM.Scheduler.Infrastructure.ConfigurationSettings();
            this.c_repository    = new AM.Scheduler.Data.Repository.Repository(this.c_configuration.DatabaseConnectionString, this.c_logger);
            var _scheduler = new AM.Scheduler.Infrastructure.QuartzScheduler(this.c_logger, this.c_repository);

            this.c_scheduler = new AM.Scheduler.Infrastructure.MessagingBus(
                this.c_configuration,
                _scheduler).SchedulerInstance;
        }
Beispiel #2
0
        public MessagingBus(
            AM.Scheduler.Infrastructure.IConfigurationSettings configuration,
            AM.Scheduler.Infrastructure.QuartzScheduler quartzScheduler)
        {
            Check.RequireArgumentNotNull(nameof(configuration), configuration);
            Check.RequireArgumentNotNull(nameof(quartzScheduler), quartzScheduler);

            this.c_configuration   = configuration;
            this.c_quartzScheduler = quartzScheduler;
            this.c_scheduler       = this.BuildScheduler();
        }