DesktopValidationResult record

Namespace Runic.Desktop · Runic.Desktop 0.7.0-preview.5

public sealed record DesktopValidationResult : IEquatable<DesktopValidationResult>

Inherits or implements IEquatable.

Collects every configuration check run before a Desktop window opens.

Constructors

DesktopValidationResult

public DesktopValidationResult(IReadOnlyList<DesktopDiagnostic> Diagnostics)

Collects every configuration check run before a Desktop window opens.

Properties

Diagnostics

public IReadOnlyList<DesktopDiagnostic> Diagnostics { get; init; }

No documentation.

Errors

public IReadOnlyList<DesktopDiagnostic> Errors { get; }

Gets the checks that fail the configuration.

IsValid

public bool IsValid { get; }

Gets whether no check failed. Warnings do not make a configuration invalid.

Warnings

public IReadOnlyList<DesktopDiagnostic> Warnings { get; }

Gets the options the presentation will ignore or narrow.

Methods

ThrowIfInvalid

public void ThrowIfInvalid()

Throws a DesktopConfigurationException listing every error, if any check failed.