コード例 #1
0
        /// <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;
        }
コード例 #2
0
        /// <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;
        }