Skip to content

Instantly share code, notes, and snippets.

@gdyrrahitis
Created May 23, 2020 16:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gdyrrahitis/a9d7af8a1311794ca3cc72fb1d71b655 to your computer and use it in GitHub Desktop.
Save gdyrrahitis/a9d7af8a1311794ca3cc72fb1d71b655 to your computer and use it in GitHub Desktop.
var consumer = new AsyncEventingBasicConsumer(Channel);
consumer.Received += OnEventReceived<LogCommand>;
Channel.BasicConsume(queue: QueueName, autoAck: false, consumer: consumer);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment