Class PluginLoadResult

Namespace
Kuestenlogik.Bowire.PluginLoading
Assembly
Kuestenlogik.Bowire.dll

Outcome of attempting to load one plugin from disk. Returned (alongside every other plugin's result) by the loader so the host can surface per-plugin health to operators instead of silently skipping a broken install. Status distinguishes the failure modes the loader can detect deterministically; ErrorMessage carries a human-readable explanation suitable for logs and /api/plugins/health.

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

Constructors

PluginLoadResult(string, string, PluginLoadStatus, string?)

Outcome of attempting to load one plugin from disk. Returned (alongside every other plugin's result) by the loader so the host can surface per-plugin health to operators instead of silently skipping a broken install. Status distinguishes the failure modes the loader can detect deterministically; ErrorMessage carries a human-readable explanation suitable for logs and /api/plugins/health.

public PluginLoadResult(string PackageId, string DirectoryPath, PluginLoadStatus Status, string? ErrorMessage)

Parameters

PackageId string
DirectoryPath string
Status PluginLoadStatus
ErrorMessage string

Properties

DirectoryPath

public string DirectoryPath { get; init; }

Property Value

string

ErrorMessage

public string? ErrorMessage { get; init; }

Property Value

string

PackageId

public string PackageId { get; init; }

Property Value

string

Status

public PluginLoadStatus Status { get; init; }

Property Value

PluginLoadStatus

Methods

Deconstruct(out string, out string, out PluginLoadStatus, out string?)

public void Deconstruct(out string PackageId, out string DirectoryPath, out PluginLoadStatus Status, out string? ErrorMessage)

Parameters

PackageId string
DirectoryPath string
Status PluginLoadStatus
ErrorMessage string

Equals(PluginLoadResult?)

public bool Equals(PluginLoadResult? other)

Parameters

other PluginLoadResult

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(PluginLoadResult?, PluginLoadResult?)

public static bool operator ==(PluginLoadResult? left, PluginLoadResult? right)

Parameters

left PluginLoadResult
right PluginLoadResult

Returns

bool

operator !=(PluginLoadResult?, PluginLoadResult?)

public static bool operator !=(PluginLoadResult? left, PluginLoadResult? right)

Parameters

left PluginLoadResult
right PluginLoadResult

Returns

bool