Table of Contents

Struct MessageBrokerRemoteClientCollection

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

Represents a collection of MessageBrokerRemoteClient instances.

public readonly struct MessageBrokerRemoteClientCollection
Inherited Members

Properties

Count

Specifies the number of owned clients.

public int Count { get; }

Property Value

int

Methods

GetAll()

Returns all owned clients.

[Pure]
public ReadOnlyArray<MessageBrokerRemoteClient> GetAll()

Returns

ReadOnlyArray<MessageBrokerRemoteClient>

All owned clients.

TryGetById(int)

Attempts to return a client with the provided id.

[Pure]
public MessageBrokerRemoteClient? TryGetById(int id)

Parameters

id int

Client's unique Id.

Returns

MessageBrokerRemoteClient

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

TryGetByName(string)

Attempts to return a client with the provided name.

[Pure]
public MessageBrokerRemoteClient? TryGetByName(string name)

Parameters

name string

Client's unique Name.

Returns

MessageBrokerRemoteClient

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