Table of Contents

Class TunnelHost

Namespace
McServerLauncher.ViewModels
Assembly
McServerLauncher.dll

What TunnelAddressTracker needs to know about, and to be able to do to, its server.

public sealed record TunnelHost : IEquatable<TunnelHost>
Inheritance
TunnelHost
Implements
Inherited Members

Constructors

TunnelHost(Func<TunnelAddressState>, Action<TunnelAddressState>, Action<string?>, Action<string>, Action<Action>)

What TunnelAddressTracker needs to know about, and to be able to do to, its server.

public TunnelHost(Func<TunnelAddressState> State, Action<TunnelAddressState> SetState, Action<string?> SetAddress, Action<string> Say, Action<Action> RunOnUi)

Parameters

State Func<TunnelAddressState>

How far along the public address is.

SetState Action<TunnelAddressState>

Shows how far along the public address is.

SetAddress Action<string>

Shows the public address.

Say Action<string>

Writes a line in the server's console.

RunOnUi Action<Action>

Runs something on the UI thread; lookups finish on another.

Properties

RunOnUi

Runs something on the UI thread; lookups finish on another.

public Action<Action> RunOnUi { get; init; }

Property Value

Action<Action>

Say

Writes a line in the server's console.

public Action<string> Say { get; init; }

Property Value

Action<string>

SetAddress

Shows the public address.

public Action<string?> SetAddress { get; init; }

Property Value

Action<string>

SetState

Shows how far along the public address is.

public Action<TunnelAddressState> SetState { get; init; }

Property Value

Action<TunnelAddressState>

State

How far along the public address is.

public Func<TunnelAddressState> State { get; init; }

Property Value

Func<TunnelAddressState>