Table of Contents

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

int

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

id int

Stream's unique Id.

Returns

MessageBrokerStream

MessageBrokerStream instance associated with the provided id or 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

name string

Stream's unique Name.

Returns

MessageBrokerStream

MessageBrokerStream instance associated with the provided name or null, when such a stream does not exist.