/// <summary> /// Configures the use of a SQL-backed command scheduler. /// </summary> public static Configuration UseSqlStorageForScheduledCommands( this Configuration configuration, Action<CommandSchedulerConfiguration> configure = null) { var schedulerConfiguration = new CommandSchedulerConfiguration(); configure?.Invoke(schedulerConfiguration); schedulerConfiguration.ApplyTo(configuration); return configuration; }
/// <summary> /// Configures the use of a SQL-backed command scheduler. /// </summary> public static Configuration UseSqlStorageForScheduledCommands( this Configuration configuration, Action<CommandSchedulerConfiguration> configure) { if (configure == null) throw new ArgumentNullException(nameof(configure)); var schedulerConfiguration = new CommandSchedulerConfiguration(); configure.Invoke(schedulerConfiguration); schedulerConfiguration.ApplyTo(configuration); return configuration; }