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