public void Acknowledge(DeliveredMessage deliveredMessage)
        {
            EnsureConsumer();

            if (IsOpen)
            {
                Model.BasicAck(deliveredMessage.DeliveryTag, false);
                ArrayPool <byte> .Shared.Return(deliveredMessage.Data);
            }
        }
        public void Acknowledge(DeliveredMessage deliveredMessage)
        {
            EnsureConsumer();

            if (IsOpen)
            {
                Model.BasicAck(deliveredMessage.DeliveryTag, false);
#if NETSTANDARD2_1
                deliveredMessage.Stream.Dispose(); // return stream to cache
#else
                ArrayPool <byte> .Shared.Return(deliveredMessage.Data);
#endif
            }
        }
Exemple #3
0
 internal static string GetRequestInfo(DeliveredMessage message)
 {
     throw new NotImplementedException();
 }
Exemple #4
0
 public RequestContext(DeliveredMessage messasge, Database db)
 {
     Message = messasge;
     Db      = db;
 }