Skip to content

Class RuntimeServer

Namespace: Void.Proxy.Api.Servers
Assembly: Void.Proxy.Api.dll

Represents a server endpoint configured at runtime.

public record RuntimeServer : IServer, IEquatable<RuntimeServer>

Inheritance

objectRuntimeServer

Implements

IServer, IEquatable<RuntimeServer>

Inherited Members

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()

Constructors

RuntimeServer(string, string, int, string?)

Represents a server endpoint configured at runtime.

public RuntimeServer(string Name, string Host, int Port, string? Override = null)

Parameters

Name string

The display name used to identify the server.

Host string

The host name or address used to connect to the server.

Port int

The TCP port used to connect to the server.

Override string?

An optional host name sent in place of the original client host during protocol handshakes.

Properties

Brand

Gets or sets the implementation brand reported by the server.

public string? Brand { get; set; }

Property Value

string?

Host

The host name or address used to connect to the server.

public string Host { get; init; }

Property Value

string

Name

The display name used to identify the server.

public string Name { get; init; }

Property Value

string

Override

An optional host name sent in place of the original client host during protocol handshakes.

public string? Override { get; init; }

Property Value

string?

Port

The TCP port used to connect to the server.

public int Port { get; init; }

Property Value

int

Methods

ToString()

Returns the server’s display name, falling back to its host and port when the name is blank.

public override string ToString()

Returns

string

when it contains non-whitespace text; otherwise, Host:Port.