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
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
Returns
- MessageBrokerRemoteClient
MessageBrokerRemoteClient instance associated with the provided
idor 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
Returns
- MessageBrokerRemoteClient
MessageBrokerRemoteClient instance associated with the provided
nameor null, when such a client does not exist.