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
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
Returns
- MessageBrokerChannelListenerBinding
MessageBrokerChannelListenerBinding instance associated with the queue and the provided
channelIdor null, when such a listener does not exist.