title: ServiceBus Azure Function Out-of-process
body: <p>I want to use .net5 with an AzureFunction V3 and a ServiceBus-Trigger.
  If using .net5 I'm forced to go for the out-of-process variant.</p>
  <p>Is it possible to get the &quot;MessageReceiver&quot; and Message-Array as it is possible with the in-process variant?</p>
  <p>in-process-variant:</p>
  <pre><code>        [FunctionName(&quot;ConsumeFromAzureServiceBus&quot;)]
          public static async Task Run([ServiceBusTrigger(&quot;mytopic&quot;, &quot;mysubscription&quot;,
                  Connection = &quot;AZURE_SERVICEBUS_CONNECTION&quot;)]
              Message[] myQueueItems,
              MessageReceiver messageReceiver,
              ILogger log)
          { ... }
  </code></pre>
  <p>MessageReceiver and Message don't seem to be available in the out-of-process packages. What is the correct way in the out-of-process variant?</p>
  <p>Thank you,
  Kind Regards</p>