Class SubscriptionDeliveryFault
Namespace: DotBoxD.Plugins.Runtime
Assembly: DotBoxD.Plugins.dll
A fault caught while delivering a published event to a subscription. Delivery runs on a background task and
these faults are otherwise swallowed (so the game loop is never blocked or crashed by plugin code); the host
observes them via PluginServer.Create(onSubscriptionFault: …) to surface the failure in its log,
so a misbehaving Subscriptions.On<T>().Where(…).RunLocal(…) chain is diagnosable instead of
silently doing nothing.
public sealed record SubscriptionDeliveryFault : IEquatable<SubscriptionDeliveryFault>Inheritance
Section titled “Inheritance”object ← SubscriptionDeliveryFault
Implements
Section titled “Implements”IEquatable<SubscriptionDeliveryFault>
Inherited Members
Section titled “Inherited Members”object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()
Constructors
Section titled “Constructors”SubscriptionDeliveryFault(Type, SubscriptionDeliveryStage, Exception)
Section titled “ SubscriptionDeliveryFault(Type, SubscriptionDeliveryStage, Exception)”A fault caught while delivering a published event to a subscription. Delivery runs on a background task and
these faults are otherwise swallowed (so the game loop is never blocked or crashed by plugin code); the host
observes them via PluginServer.Create(onSubscriptionFault: …) to surface the failure in its log,
so a misbehaving Subscriptions.On<T>().Where(…).RunLocal(…) chain is diagnosable instead of
silently doing nothing.
public SubscriptionDeliveryFault(Type EventType, SubscriptionDeliveryStage Stage, Exception Exception)Parameters
Section titled “Parameters”EventType Type
The event type whose delivery faulted.
Stage SubscriptionDeliveryStage
The delivery stage that threw.
Exception Exception
The exception that was caught.
Properties
Section titled “Properties”EventType
Section titled “ EventType”public Type EventType { get; init; }Property Value
Section titled “Property Value”Exception
Section titled “ Exception”public Exception Exception { get; init; }Property Value
Section titled “Property Value”public SubscriptionDeliveryStage Stage { get; init; }