Struct MessageBrokerChannelCollection
- Namespace
- LfrlAnvil.MessageBroker.Server
- Assembly
- LfrlAnvil.MessageBroker.Server.dll
Represents a collection of MessageBrokerChannel instances.
public readonly struct MessageBrokerChannelCollection
- Inherited Members
Properties
Count
Specifies the number of owned channels.
public int Count { get; }
Property Value
Methods
GetAll()
Returns all owned channels.
[Pure]
public ReadOnlyArray<MessageBrokerChannel> GetAll()
Returns
- ReadOnlyArray<MessageBrokerChannel>
All owned channels.
TryGetById(int)
Attempts to return a channel with the provided id.
[Pure]
public MessageBrokerChannel? TryGetById(int id)
Parameters
Returns
- MessageBrokerChannel
MessageBrokerChannel instance associated with the provided
idor null, when such a channel does not exist.
TryGetByName(string)
Attempts to return a channel with the provided name.
[Pure]
public MessageBrokerChannel? TryGetByName(string name)
Parameters
Returns
- MessageBrokerChannel
MessageBrokerChannel instance associated with the provided
nameor null, when such a channel does not exist.