Created
October 20, 2017 02:44
-
-
Save thiagoloureiro/7330da440a8be0298de4d4ffe1afebb2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public bool WriteMessageOnQueue(string message, string queueName, IConnection connection) | |
{ | |
using (var channel = connection.CreateModel()) | |
{ | |
channel.BasicPublish(string.Empty, queueName, null, Encoding.ASCII.GetBytes(message)); | |
} | |
return true; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment