public void RegiserTransactionEnd(GlimpseDbQueryTransactionMetadata transaction) { var last = Commands.LastOrDefault(); if (!last.Equals(DefaultCommandKey)) last.Value.TailTransaction = transaction; TempTransaction = null; }
public void RegiserCommand(GlimpseDbQueryCommandMetadata command) { Commands.Add(command.Id, command); if (TempTransaction != null) { command.HeadTransaction = TempTransaction; TempTransaction = null; } }
public void RegiserTransactionStart(GlimpseDbQueryTransactionMetadata transaction) { TempTransaction = transaction; }
protected GlimpseDbQueryTransactionMetadata PullTranasction(string connectionId, string transactionId) { GlimpseDbQueryTransactionMetadata transaction; if (!Metadata.Transactions.TryGetValue(transactionId, out transaction)) { transaction = new GlimpseDbQueryTransactionMetadata(transactionId, connectionId); Metadata.Transactions.Add(transactionId, transaction); } return transaction; }