public static void Main(string[] args) { _logger = LogManager.GetCurrentClassLogger(); RegisterDependencies(); InitializeConfigurationFileDependencies(); LoadPlugins(); _logger.Debug("Configuration Loaded."); SetupAriEndpoint(); _logger.Info("Verifying DI Container", new { DIContainer = "SimpleInjector" }); ObjectContainer.GetInstance().Verify(); var service = new ArkeCallFlowService(); service.Start(); _logger.Info("Service running, press CTRL-C to terminate."); try { _logger.Info("Starting Web Host services."); BuildWebHost(args).Run(); } catch (Exception e) { _logger.Fatal(e, "Host terminated unexpectedly."); } }
public static void Main(string[] args) { _logger = LogManager.GetCurrentClassLogger(); RegisterDependencies(); InitializeConfigurationFileDependencies(); LoadPlugins(); _logger.Debug("Configuration Loaded."); SetupAriEndpoint(); _logger.Info("Verifying DI Container", new { DIContainer = "SimpleInjector" }); ObjectContainer.GetInstance().Verify(); var service = new ArkeCallFlowService(); service.Start(); _logger.Info("Service running, press CTRL-C to terminate."); Console.ReadLine(); }