From 32a0fce3e706aabb94a110e3d8c1b9dc345f24bd Mon Sep 17 00:00:00 2001 From: atef Date: Wed, 13 Dec 2023 15:38:06 +0100 Subject: [PATCH] Add exception display and surppress the await warning --- csharp/App/SaliMax/src/Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/csharp/App/SaliMax/src/Program.cs b/csharp/App/SaliMax/src/Program.cs index 96ba94df8..1dd643d36 100644 --- a/csharp/App/SaliMax/src/Program.cs +++ b/csharp/App/SaliMax/src/Program.cs @@ -80,7 +80,7 @@ internal static class Program public static async Task Main(String[] args) { //Do not await - Aggregator.HourlyDataAggregationManager(); + Aggregator.HourlyDataAggregationManager().ContinueWith(t=>t.Exception.WriteLine(), TaskContinuationOptions.OnlyOnFaulted).SuppressAwaitWarning(); MiddlewareAgent.InitializeCommunicationToMiddleware(); while (true) {