Table of Contents

Struct MessageBrokerRemoteClientConnectorCollection

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

Represents a collection of MessageBrokerRemoteClientConnector instances.

public readonly struct MessageBrokerRemoteClientConnectorCollection
Inherited Members

Properties

Count

Specifies the number of owned connectors.

public int Count { get; }

Property Value

int

Methods

GetAll()

Returns all owned connectors.

[Pure]
public ReadOnlyArray<MessageBrokerRemoteClientConnector> GetAll()

Returns

ReadOnlyArray<MessageBrokerRemoteClientConnector>

All owned connectors.

TryGetById(int)

Attempts to return a connector with the provided id.

[Pure]
public MessageBrokerRemoteClientConnector? TryGetById(int id)

Parameters

id int

Connector's unique Id.

Returns

MessageBrokerRemoteClientConnector

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