#pragma warning restore 618

        /// <summary>
        /// Configures the system to use a SQL-based event store.
        /// </summary>
        /// <returns>The updated configuration.</returns>
        public static Configuration UseSqlEventStore(
            this Configuration configuration,
            Action <EventStoreConfiguration> configure)
        {
            if (configure == null)
            {
                throw new ArgumentNullException(nameof(configure));
            }

            var schedulerConfiguration = new EventStoreConfiguration();

            configure(schedulerConfiguration);
            schedulerConfiguration.ApplyTo(configuration);
            return(configuration);
        }
        /// <summary>
        /// Configures the system to use a SQL-based event store.
        /// </summary>
        /// <returns>The updated configuration.</returns>
        public static Configuration UseSqlEventStore(
            this Configuration configuration,
            Action<EventStoreConfiguration> configure)
        {
            if (configure == null)
            {
                throw new ArgumentNullException(nameof(configure));
            }

            var schedulerConfiguration = new EventStoreConfiguration();
            configure(schedulerConfiguration);
            schedulerConfiguration.ApplyTo(configuration);
            return configuration;
        }