Beispiel #1
0
 def send_batch_message(sender: ServiceBusSender, messages: List[str]):
     batch_message = sender.create_message_batch()
     for message in messages:
         batch_message.add_message(ServiceBusMessage(message))
     sender.send_messages(batch_message)
Beispiel #2
0
 def send_list_messages(sender: ServiceBusSender, messages: List[str]):
     list_messages = [ServiceBusMessage(message) for message in messages]
     sender.send_messages(list_messages)  # type: ignore[arg-type]