Table of Contents

Struct MessageBrokerQueueListenerCollection

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

Represents a collection of MessageBrokerQueueListenerBinding instances attached to a single queue, identified by channel ids.

public readonly struct MessageBrokerQueueListenerCollection
Inherited Members

Properties

Count

Specifies the number of listeners.

public int Count { get; }

Property Value

int

Methods

GetAll()

Returns all listeners.

[Pure]
public ReadOnlyArray<MessageBrokerQueueListenerBinding> GetAll()

Returns

ReadOnlyArray<MessageBrokerQueueListenerBinding>

All listeners.

TryGetByChannelId(int)

Attempts to return a listener by related channel id.

[Pure]
public MessageBrokerQueueListenerBinding? TryGetByChannelId(int channelId)

Parameters

channelId int

Channel's unique Id.

Returns

MessageBrokerQueueListenerBinding

MessageBrokerQueueListenerBinding instance associated with the queue and the provided channelId or null, when such a listener does not exist.