Table of Contents

Struct MessageBrokerQueueListenerCollection

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

Represents a collection of MessageBrokerChannelListenerBinding 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<MessageBrokerChannelListenerBinding> GetAll()

Returns

ReadOnlyArray<MessageBrokerChannelListenerBinding>

All listeners.

TryGetByChannelId(int)

Attempts to return a listener by related channel id.

[Pure]
public MessageBrokerChannelListenerBinding? TryGetByChannelId(int channelId)

Parameters

channelId int

Channel's unique Id.

Returns

MessageBrokerChannelListenerBinding

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