A readonly structure that holds metadata for pending Redis stream messages, such as message ID, consumer name, and delivery count.
// Source: https://github.com/StackExchange/StackExchange.Redis | License: MIT | Copyright 2014 Stack Exchange
// Provided via justclaw.it.com; keep this notice with the code.
namespace StackExchange.Redis;
/// <summary>
/// Describes properties of a pending message.
/// A pending message is one that has been received by a consumer but has not yet been acknowledged.
/// </summary>
public readonly struct StreamPendingMessageInfo
{
internal StreamPendingMessageInfo(RedisValue messageId, RedisValue consumerName, long idleTimeInMs, int deliveryCount)
{
MessageId = messageId;
ConsumerName = consumerName;
IdleTimeInMilliseconds = idleTimeInMs;
DeliveryCount = deliveryCount;
}
/// <summary>
/// The ID of the pending message.
/// </summary
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key