Add exception display and surppress the await warning

This commit is contained in:
atef 2023-12-13 15:38:06 +01:00
parent 6ef765f92b
commit 32a0fce3e7
1 changed files with 1 additions and 1 deletions

View File

@ -80,7 +80,7 @@ internal static class Program
public static async Task Main(String[] args) public static async Task Main(String[] args)
{ {
//Do not await //Do not await
Aggregator.HourlyDataAggregationManager(); Aggregator.HourlyDataAggregationManager().ContinueWith(t=>t.Exception.WriteLine(), TaskContinuationOptions.OnlyOnFaulted).SuppressAwaitWarning();
MiddlewareAgent.InitializeCommunicationToMiddleware(); MiddlewareAgent.InitializeCommunicationToMiddleware();
while (true) while (true)
{ {