Specify the correct parameter for ServiceBusSender.SendMessagesAsync() if text is of type string.
ServiceBusSender.SendMessagesAsync()
text
string
new ServiceBusMessage(text)
new ServiceBusMessage(Encoding.UTF8.GetBytes(text))
Encoding.UTF8.GetBytes(text)
No parameter
ServiceBusMessage can be both string and byte[].
ServiceBusMessage
byte[]