Exemplo n.º 1
0
        public void Event_seen_reported_on_collect()
        {
            // Act
            _transactionEventAggregator.Collect(new TransactionEventWireModel(_attribValues, false, 0.1f));

            // Assert
            Mock.Assert(() => _agentHealthReporter.ReportTransactionEventCollected());
        }
Exemplo n.º 2
0
        public override void Collect(TransactionEventWireModel transactionEventWireModel)
        {
            _agentHealthReporter.ReportTransactionEventCollected();

            _readerWriterLock.EnterReadLock();
            try
            {
                AddEventToCollection(transactionEventWireModel);
            }
            finally
            {
                _readerWriterLock.ExitReadLock();
            }
        }