Пример #1
0
        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);
        }
Пример #2
0
        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;
        }