title: In a C# TimerTrigger Function App, how can I process the service bus at a regular interval instead of continuously?
body: <p>I'm creating an integration between Microsoft Azure and Salesforce, where the contents of a Microsoft Azure Service Bus must all be transformed and sent forward to Salesforce.</p>
  <p>Salesforce has various limits on API consumption, so just transforming each message individually and sending it forward could lead to errors and data loss.</p>
  <p>Instead, at a regular interval (for example every 30 minutes), I'd like to check the service bus, extract any waiting messages, and send them to Salesforce's bulk API.</p>
  <p>The following code successfully collects data from the service bus</p>
  <pre><code>       this.queueClient.RegisterMessageHandler(
                  this.ProcessMessagesAsync,
                  new MessageHandlerOptions(this.ExceptionReceivedHandler) {
                      MaxConcurrentCalls = 1,
                      AutoComplete = false
                  });
  </code></pre>
  <p>However, as the name of the function suggests, this is registering the message handler.  The message will actually be handled as soon as it comes in.  Rerunning this every 30 minutes does nothing useful, as it is just reregistering and not effecting the interval.</p>
  <p>Any ideas how to delay handling?</p>