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
StateFunc<TunnelAddressState>How far along the public address is.
SetStateAction<TunnelAddressState>Shows how far along the public address is.
SetAddressAction<string>Shows the public address.
SayAction<string>Writes a line in the server's console.
RunOnUiAction<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
Say
Writes a line in the server's console.
public Action<string> Say { get; init; }
Property Value
SetAddress
Shows the public address.
public Action<string?> SetAddress { get; init; }
Property Value
SetState
Shows how far along the public address is.
public Action<TunnelAddressState> SetState { get; init; }
Property Value
State
How far along the public address is.
public Func<TunnelAddressState> State { get; init; }