Struct HostWindowResult
- Namespace
- AcDream.Plugin.Abstractions
- Assembly
- AcDream.Plugin.Abstractions.dll
One outcome from an IHostWindow call. Notice carries a one-line reason when the host has one worth surfacing (a logger message, a diagnostic panel) -- callers should branch on Status/Succeeded only, never on the text of Notice, which is not a stable identifier.
public readonly record struct HostWindowResult : IEquatable<HostWindowResult>
- Implements
- Inherited Members
Constructors
HostWindowResult(HostWindowStatus, string?)
One outcome from an IHostWindow call. Notice carries a one-line reason when the host has one worth surfacing (a logger message, a diagnostic panel) -- callers should branch on Status/Succeeded only, never on the text of Notice, which is not a stable identifier.
public HostWindowResult(HostWindowStatus Status, string? Notice = null)
Parameters
StatusHostWindowStatusNoticestring
Properties
Notice
public string? Notice { get; init; }
Property Value
Status
public HostWindowStatus Status { get; init; }
Property Value
Succeeded
Whether the operation took effect.
public bool Succeeded { get; }