SportingSolutions.Udapi.Sdk.StreamSubscriber.HandleBasicDeliver C# (CSharp) 메소드

HandleBasicDeliver() 공개 메소드

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
리턴 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();
        }