public void Initialise() { if (Initialised) { return; } if (_checkService.PreCheckRepository()) { Initialised = true; return; } Log.Warn("Some checks have failed. Please correct the errors and try again."); Log.Info("Press ENTER to exit..."); Console.Read(); Environment.Exit(0); }