public static ServiceBusTriggerInput CreateBatch(ServiceBusReceivedMessage[] messages, ServiceBusMessageActions messageActions, ServiceBusReceiveActions receiveActions, ServiceBusClient client)
 {
     return(new ServiceBusTriggerInput
     {
         Messages = messages,
         _isSingleDispatch = false,
         MessageActions = messageActions,
         ReceiveActions = receiveActions,
         Client = client
     });
 }
 public static ServiceBusTriggerInput CreateSingle(ServiceBusReceivedMessage message, ServiceBusMessageActions messageActions, ServiceBusReceiveActions receiveActions, ServiceBusClient client)
 {
     return(new ServiceBusTriggerInput
     {
         Messages = new ServiceBusReceivedMessage[]
         {
             message
         },
         _isSingleDispatch = true,
         MessageActions = messageActions,
         ReceiveActions = receiveActions,
         Client = client
     });
 }