SportingSolutions.Udapi.Sdk.StreamSubscriber.HandleBasicDeliver C# (CSharp) Méthode

HandleBasicDeliver() public méthode

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
Résultat 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();
        }