Struct MessageBrokerStreamPublisherCollection
- Namespace
- LfrlAnvil.MessageBroker.Server
- Assembly
- LfrlAnvil.MessageBroker.Server.dll
Represents a collection of MessageBrokerChannelPublisherBinding instances attached to a single stream, identified by (client-id, channel-id) tuples.
public readonly struct MessageBrokerStreamPublisherCollection
- 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.
TryGetByKey(int, int)
Attempts to return a publisher by related (client-id, channel-id) tuple.
[Pure]
public MessageBrokerChannelPublisherBinding? TryGetByKey(int clientId, int channelId)
Parameters
Returns
- MessageBrokerChannelPublisherBinding
MessageBrokerChannelPublisherBinding instance associated with the stream and the provided (
clientId,channelId) tuple or null, when such a publisher does not exist.