Struct MessageBrokerChannelListenerBindingCollection
- Namespace
- LfrlAnvil.MessageBroker.Server
- Assembly
- LfrlAnvil.MessageBroker.Server.dll
Represents a collection of MessageBrokerChannelListenerBinding instances attached to a single channel, identified by client ids.
public readonly struct MessageBrokerChannelListenerBindingCollection
- 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.
TryGetByClientId(int)
Attempts to return a listener by related client id.
[Pure]
public MessageBrokerChannelListenerBinding? TryGetByClientId(int clientId)
Parameters
Returns
- MessageBrokerChannelListenerBinding
MessageBrokerChannelListenerBinding instance associated with the channel and the provided
clientIdor null, when such a listener does not exist.