private static void DoTransactions(FileInfo fileInfo) { var changelogXml = GetChangelogXml(fileInfo); Dataset.SetEndindex(GetEndIndex(changelogXml)); changelogXml.Descendants(Provider.ChangelogNamespace + "transactions") .ToList().ForEach(PrepareAndSendTransaction); }
private static void DoTransactions(FileInfo fileInfo) { var changelogXml = GetChangelogXml(fileInfo); Dataset.SetEndindex(GetEndIndex(changelogXml)); try { changelogXml.Descendants(Provider.ChangelogNamespace + "transactions") .ToList().ForEach(PrepareAndSendTransaction); } catch (TransactionAbortedException) { Transaction = 0; Console.WriteLine("ERROR: Something went wrong in transaction. Attempting to validate changelog."); Validator.Validate(changelogXml); Console.WriteLine("INFO: Changelog is valid."); throw; } }