Table of Contents

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

int

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

clientId int

Client's unique Id.

Returns

MessageBrokerChannelListenerBinding

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