public static void Configure(Action<KlingerConfiguration> action)
        {
            _repository = new EnvironmentValidatorRepository();

            var b = new BackingConfigurationObject(_repository);
            action(b);

            if (b.ShouldHostWebServerInProcess)
            {
                _webServer = new InProcessKlingerWebServer(b.Port, _repository);
                _webServer.Start();
            }

            if (b.ShouldRunScheduler)
            {
                _scheduleServer = new InProcessKlingerScheduleServer(_repository, b.SchedulerDelay, b.SchedulerInterval);

                _scheduleServer.OnFatal(b.ErrorAction);
                _scheduleServer.OnWarning(b.WarningAction);
                _scheduleServer.Start();
            }
        }
        public static void Configure(Action <KlingerConfiguration> action)
        {
            _repository = new EnvironmentValidatorRepository();

            var b = new BackingConfigurationObject(_repository);

            action(b);

            if (b.ShouldHostWebServerInProcess)
            {
                _webServer = new InProcessKlingerWebServer(b.Port, _repository);
                _webServer.Start();
            }

            if (b.ShouldRunScheduler)
            {
                _scheduleServer = new InProcessKlingerScheduleServer(_repository, b.SchedulerDelay, b.SchedulerInterval);

                _scheduleServer.OnFatal(b.ErrorAction);
                _scheduleServer.OnWarning(b.WarningAction);
                _scheduleServer.Start();
            }
        }