Table of Contents

Struct MessageBrokerQueuePendingMessageCollection

Namespace
LfrlAnvil.MessageBroker.Server
Assembly
LfrlAnvil.MessageBroker.Server.dll

Represents a collection of pending messages stored in a MessageBrokerQueue.

public readonly struct MessageBrokerQueuePendingMessageCollection
Inherited Members

Properties

Count

Number of stored pending messages.

public int Count { get; }

Property Value

int

Methods

TryPeekAt(int)

Attempts to retrieve a pending message from the store by its queue index.

[Pure]
public MessageBrokerQueuePendingMessage? TryPeekAt(int index)

Parameters

index int

Queue index of the pending message to retrieve.

Returns

MessageBrokerQueuePendingMessage?

MessageBrokerQueuePendingMessage instance associated with the given queue index or null if such a message doesn't exist.