Skip to main content

BnImageErrorEventArgs

Namespace: BlazorNative.Core

Event arguments for the error event: a shell's image load for this node terminated in failure.

public sealed class BnImageErrorEventArgs : System.EventArgs

Inheritance ObjectEventArgsBnImageErrorEventArgs
Attributes NullableContextAttribute, NullableAttribute, RequiredMemberAttribute

Remarks:

Dispatched AT MOST ONCE per terminated request, and only for a LIVE one — the shells' dispatch site sits behind the same generation-and-identity guard the paint does, so a superseded request's error is a stale callback and dispatches nothing. CANCELLED is not an error: a Src change, src → null and node removal all cancel, and none dispatches. Failure never changes measurement — a declared box holds, an intrinsic node stays 0 × 0 (the 6.3 failure row, unchanged); fallback UI is the app's re-render on this event, never the shell's.

Properties

Src

The failed source — the src the wire carried for the node, verbatim. Never null or empty: a dispatch without it is a shell contract violation and faults loudly at the ingress (rc 2).

public required string Src { get; init; }

Property Value

String

Constructors

BnImageErrorEventArgs()

Caution

Constructors of types with required members are not supported in this version of your compiler.


public BnImageErrorEventArgs()