private TransactionMetadata GetOrCreateTransactionFor(AdomdTransactionMessage message) { TransactionMetadata transaction; var connectionId = message.ConnectionId.ToString(); var transactionId = message.TransactionId.ToString(); if (!Metadata.Transactions.TryGetValue(transactionId, out transaction)) { transaction = new TransactionMetadata(transactionId, connectionId); Metadata.Transactions.Add(transactionId, transaction); } return(transaction); }
private TransactionMetadata GetOrCreateTransactionFor(AdomdTransactionMessage message) { TransactionMetadata transaction; var connectionId = message.ConnectionId.ToString(); var transactionId = message.TransactionId.ToString(); if (!Metadata.Transactions.TryGetValue(transactionId, out transaction)) { transaction = new TransactionMetadata(transactionId, connectionId); Metadata.Transactions.Add(transactionId, transaction); } return transaction; }