Exemplo n.º 1
0
 /// <summary>
 /// Sends an UTF8-encoded string as a message asynchronously
 /// </summary>
 /// <param name="client"></param>
 /// <param name="queueName"></param>
 /// <param name="content"></param>
 /// <param name="conversationId"></param>
 /// <returns></returns>
 public static Task <ContentMessage> SendMessageAsync(this WindirMqClient client, string queueName, string content, Guid conversationId)
 {
     return(client.SendMessageAsync(queueName, System.Text.Encoding.UTF8.GetBytes(content), conversationId));
 }
Exemplo n.º 2
0
 /// <summary>
 /// Sends a UTF8-encoded string as a message
 /// </summary>
 /// <param name="client"></param>
 /// <param name="queueName"></param>
 /// <param name="content"></param>
 /// <returns></returns>
 public static ContentMessage SendMessage(this WindirMqClient client, string queueName, string content)
 {
     return(client.SendMessage(queueName, System.Text.Encoding.UTF8.GetBytes(content)));
 }