Entry Points in a Single-threaded Architecture

NServiceBus entry points are methods that listen or poll for new messages in the queue. When the message receiver uses a single-threaded architecture, the .NET Agent automatically discovers entry points and correlates downstream activity without additional configuration.

The agent measures the call time from the end of the first receive method to the start of the subsequent receive method. In the following example loop, the length of the ProcessMessage()

MessageQueue messageQueue;
for(;;)
{
// Call timing for previous iteration ends.
var message = messageQueue.Receive();
// Call timing begins.
ProcessMessage(message);
}