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