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 } }
internal static string GetRequestInfo(DeliveredMessage message) { throw new NotImplementedException(); }
public RequestContext(DeliveredMessage messasge, Database db) { Message = messasge; Db = db; }