internal async Task Run() { _logger.LogInformation("Application {applicationEvent} at {dateTime}", "Started", DateTime.UtcNow); await _serviceA.DoSomething(); _logger.LogInformation("Application {applicationEvent} at {dateTime}", "Ended", DateTime.UtcNow); Console.WriteLine("PRESS <ENTER> TO EXIT"); Console.ReadKey(); }