public HandleBasicDeliver ( string consumerTag, ulong deliveryTag, bool redelivered, string exchange, string routingKey, IBasicProperties properties, byte body ) : void | ||
consumerTag | string | |
deliveryTag | ulong | |
redelivered | bool | |
exchange | string | |
routingKey | string | |
properties | IBasicProperties | |
body | byte | |
return | void |
public override void HandleBasicDeliver(string consumerTag, ulong deliveryTag, bool redelivered, string exchange, string routingKey, IBasicProperties properties, byte[] body)
{
if(!IsRunning)
return;
var success =
Dispatcher.DispatchMessage(consumerTag, Encoding.UTF8.GetString(body));
if(!success)
StopConsuming();
}