public async Task Run() { // Start watch var stopwatch = new Stopwatch(); stopwatch.Start(); // Run var currencies = await _currencyService.UpdateCurrencies(); var indicators = await _indicatorService.UpdateIndicatorDependencies(); var lines = await _lineService.UpdateLines(currencies, indicators); var defaultWatchers = await _watcherService.UpdateDefaultWatchers(lines); var watchers = await _watcherService.UpdateWatchers(defaultWatchers, lines); await _orderService.UpdateOrders(watchers); //await _notificationService.CreateNotifications(); await _notificationService.SendTelegramNotifications(); // Stop watch stopwatch.Stop(); // Log into Splunk _logger.LogSplunkInformation("Main", new { ExecutionTime = stopwatch.Elapsed.TotalSeconds }); }