Interface IPlayer
Namespace: Void.Proxy.Api.Players
Assembly: Void.Proxy.Api.dll
Represents a connected player and exposes information about their network connection and execution context.
public interface IPlayer : IEquatable<IPlayer>, ICommandSource, IAsyncDisposable, IDisposableImplements
IEquatable<IPlayer>, ICommandSource, IAsyncDisposable, IDisposable
Properties
Client
Gets the underlying
TcpClient Client { get; }Property Value
ConnectedAt
Gets the date and time when the player connected to the proxy.
DateTimeOffset ConnectedAt { get; }Property Value
Context
Gets the context containing services and state associated with the player.
IPlayerContext Context { get; }Property Value
Name
Gets the name of the player. Falls back to IP address if unavailable.
string Name { get; }Property Value
RemoteEndPoint
Gets the textual representation of the client’s remote endpoint.
string RemoteEndPoint { get; }Property Value
Methods
GetStableHashCode()
Computes a stable hash code for the current instance. This is useful when the instance is upgraded or replaced to another implementation.
int GetStableHashCode()Returns
An integer representing the hash code of the current instance, derived from the
Remarks
The hash code is based on the