Class ClientInfo
Represents a client as it introduces itself to a server.
public class ClientInfo
- Inheritance
-
ClientInfo
- Inherited Members
Properties
ClientId
Gets the client's ID, the same for its every session.
public required string ClientId { get; init; }
Property Value
ClientVersion
Gets the client's version.
public required string ClientVersion { get; init; }
Property Value
MaxProtocolVersion
Gets the newest protocol version the client speaks.
public int MaxProtocolVersion { get; init; }
Property Value
MinProtocolVersion
Gets the oldest protocol version the client speaks.
public int MinProtocolVersion { get; init; }
Property Value
UserAgent
Gets the client's user agent, which names its app and platform.
public required string UserAgent { get; init; }
Property Value
Methods
ToString()
Writes the client's ID, as ClientId=....
public override string ToString()
Returns
- string
The text.