Table of Contents

Class PreflightHost

Namespace
McServerLauncher.ViewModels
Assembly
McServerLauncher.dll

What StartPreflight needs from its server.

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

Constructors

PreflightHost(Func<string>, Action<string>, Action, Func<IEnumerable<string>, IProgress<string>, Task>)

What StartPreflight needs from its server.

public PreflightHost(Func<string> Name, Action<string> Say, Action ConfigChanged, Func<IEnumerable<string>, IProgress<string>, Task> InstallMissing)

Parameters

Name Func<string>

The server's display name, for dialogs.

Say Action<string>

Writes a line in the server's console.

ConfigChanged Action

Tells the app the config was changed here, so it is saved.

InstallMissing Func<IEnumerable<string>, IProgress<string>, Task>

Installs the named mods and plugins, reporting progress.

Properties

ConfigChanged

Tells the app the config was changed here, so it is saved.

public Action ConfigChanged { get; init; }

Property Value

Action

InstallMissing

Installs the named mods and plugins, reporting progress.

public Func<IEnumerable<string>, IProgress<string>, Task> InstallMissing { get; init; }

Property Value

Func<IEnumerable<string>, IProgress<string>, Task>

Name

The server's display name, for dialogs.

public Func<string> Name { get; init; }

Property Value

Func<string>

Say

Writes a line in the server's console.

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

Property Value

Action<string>