Class DesktopInitParams
- Namespace
- VpnHood.AppUi.Hosting.Desktop
- Assembly
- VpnHood.AppUi.Hosting.Desktop.dll
Represents what a desktop head says for itself: the init params of every platform, and the answers the commands and the window need.
public class DesktopInitParams : AppInitParams
- Inheritance
-
DesktopInitParams
- Inherited Members
Remarks
Where the machine keeps things and what the service is are the platform's answers; the service's host lays its storage out itself, so a desktop head names no storage folder. The options factory runs only where the app runs.
Properties
AccessKeyFileExtensions
Gets the extensions of an access key's file, as one sent to the person, that open in this app, which imports the key. The default is none.
public IReadOnlyList<string> AccessKeyFileExtensions { get; init; }
Property Value
Remarks
On Windows, service install registers them in an installer's layout.
AccessKeySchemes
Gets the schemes of a link that is an access key itself, as vh:, which opens in this app the same way. The default is none.
public IReadOnlyList<string> AccessKeySchemes { get; init; }
Property Value
IsAddAccessKeySupported
Gets a value indicating whether the head offers adding access keys: the same answer the head gives the app's options, which must agree.
public required bool IsAddAccessKeySupported { get; init; }
Property Value
Remarks
Where it is false, the commands that name, list and add profiles, and the --profile option,
are not printed, parsed or offered in help. It is required, as it is the one answer that differs between the two
shipped heads.
Ui
Gets the head's UI, which the window runs on the host's main thread against the running app: the API over loopback, and the UI's own content extracted under the current user's cache.
public required IDesktopUi Ui { get; init; }