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