title: Event Hub Listener - get all messages in one go
body: <p>I am testing an Event Hub.  The developers are pushing messages to the Event Hub.  I have built an Event Hub Listener to check all the messages are being sent/received correctly.  This is the design I used:</p>
  
  <p><a href="https://docs.microsoft.com/en-us/azure/event-hubs/event-hubs-dotnet-framework-getstarted-receive-eph" rel="nofollow noreferrer">https://docs.microsoft.com/en-us/azure/event-hubs/event-hubs-dotnet-framework-getstarted-receive-eph</a></p>
  
  <p>The issue I have is there are circa 4 million events on the event hub and the ProcessEventsAsync method seems to get called 4 or 5 times and then stops being called.</p>
  
  <p>Is there a way I can just request to get only the messages added in the last X minutes?</p>