static void Main(string[] args) { DataStructuring dataStructuring = new DataStructuring(); var hijackingTestResultService = new HijackingTestResultService(); var chartDataService = new ChartDataService(); while (true) { try { Console.WriteLine($"{DateTime.Now} - Application Started..."); var newData = hijackingTestResultService.GetDataForSummarize(); dataStructuring.SummarizeDataNew(newData); Task.Run(() => dataStructuring.UpdateSummarizedData(newData)); Console.WriteLine($"{DateTime.Now} - Application Ended..."); } catch (Exception ex) { DataStructuring.log.Error(ex); } Thread.Sleep(15 * 60 * 1000); } }