示例#1
0
        public async Task TestReadMessages()
        {
            receivedMessageCounter = 0;
            await queueClient.EnsureSubscribe(QueueClient_OnMessageReceived);

            autoResetEvent.WaitOne(30000);
            Assert.IsTrue(receivedMessageCounter >= minReceivedMessage);
        }
示例#2
0
 static async Task RegisterOnMessageHandlerAndReceiveMessages()
 {
     // Register the action that processes messages.
     await queueClient.EnsureSubscribe(QueueClient_OnMessageReceived);
 }