private void RefreshTransactionsInternal() { _transactionInfosInternal.Clear(); var script = _projectService?.GetActiveScript(); if (script == null) { return; } var scriptFilePath = script.FileName; if (scriptFilePath.IsNullOrWhiteSpace()) { return; } var scriptDirectory = Path.GetDirectoryName(scriptFilePath); if (scriptDirectory.IsNullOrWhiteSpace()) { return; } var outputLogFilePath = Path.Combine(scriptDirectory.EnsureNotNull(), OutputLogFileName); if (!File.Exists(outputLogFilePath)) { return; } TransactionInfo[] transactionInfos; using (var parser = new OutputLogParser(outputLogFilePath)) { transactionInfos = parser.Parse(); } transactionInfos.DoForEach(_transactionInfosInternal.Add); }