Table of Contents

Struct MessageBrokerRemoteClientQueueCollection

Namespace
LfrlAnvil.MessageBroker.Server
Assembly
LfrlAnvil.MessageBroker.Server.dll

Represents a collection of MessageBrokerQueue instances attached to a single client, identified by their names.

public readonly struct MessageBrokerRemoteClientQueueCollection
Inherited Members

Properties

Count

Specifies the number of queues.

public int Count { get; }

Property Value

int

Methods

GetAll()

Returns all queues.

[Pure]
public ReadOnlyArray<MessageBrokerQueue> GetAll()

Returns

ReadOnlyArray<MessageBrokerQueue>

All queues.

TryGetById(int)

Attempts to return a queue by its id.

[Pure]
public MessageBrokerQueue? TryGetById(int id)

Parameters

id int

Queue's unique Id.

Returns

MessageBrokerQueue

MessageBrokerQueue instance associated with the client and the provided id or null, when such a queue does not exist.

TryGetByName(string)

Attempts to return a queue by its name.

[Pure]
public MessageBrokerQueue? TryGetByName(string name)

Parameters

name string

Queue's unique Name.

Returns

MessageBrokerQueue

MessageBrokerQueue instance associated with the client and the provided name or null, when such a queue does not exist.