Class MessageBrokerRemoteClientConnector
- Namespace
- LfrlAnvil.MessageBroker.Server
- Assembly
- LfrlAnvil.MessageBroker.Server.dll
Represents a remote message broker client connector.
public sealed class MessageBrokerRemoteClientConnector
- Inheritance
-
MessageBrokerRemoteClientConnector
- Inherited Members
Properties
Id
Connector's unique identifier assigned by the server.
public int Id { get; }
Property Value
LocalEndPoint
The local EndPoint that this connector is using for communications with the remote client.
public EndPoint? LocalEndPoint { get; }
Property Value
RemoteEndPoint
The remote IPEndPoint of the remote client to which this connector connects to.
public EndPoint? RemoteEndPoint { get; }
Property Value
Server
MessageBrokerServer instance to which this client belongs to.
public MessageBrokerServer Server { get; }
Property Value
State
Current connector's state.
public MessageBrokerRemoteClientConnectorState State { get; }
Property Value
Remarks
See MessageBrokerRemoteClientConnectorState for more information.
Methods
CancelAsync()
Requests this connector to cancel operations.
public ValueTask<Result<bool>> CancelAsync()
Returns
- ValueTask<Result<bool>>
A task that represents the asynchronous disconnect operation. The underlying Result<T> returns true when cancellation was successfully requested, otherwise false.
ToString()
Returns a string representation of this MessageBrokerRemoteClientConnector instance.
[Pure]
public override string ToString()
Returns
- string
String representation.