Table of Contents

Struct MessageBrokerChannelPublisherBindingCollection

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

Represents a collection of MessageBrokerChannelPublisherBinding instances attached to a single channel, identified by client ids.

public readonly struct MessageBrokerChannelPublisherBindingCollection
Inherited Members

Properties

Count

Specifies the number of publishers.

public int Count { get; }

Property Value

int

Methods

GetAll()

Returns all publishers.

[Pure]
public ReadOnlyArray<MessageBrokerChannelPublisherBinding> GetAll()

Returns

ReadOnlyArray<MessageBrokerChannelPublisherBinding>

All publishers.

TryGetByClientId(int)

Attempts to return a publisher by related client id.

[Pure]
public MessageBrokerChannelPublisherBinding? TryGetByClientId(int clientId)

Parameters

clientId int

Client's unique Id.

Returns

MessageBrokerChannelPublisherBinding

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