Table of Contents

Struct MessageBrokerRemoteClientPublisherCollection

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

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

public readonly struct MessageBrokerRemoteClientPublisherCollection
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.

TryGetByChannelId(int)

Attempts to return a publisher by related channel id.

[Pure]
public MessageBrokerChannelPublisherBinding? TryGetByChannelId(int channelId)

Parameters

channelId int

Channel's unique Id.

Returns

MessageBrokerChannelPublisherBinding

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