Skip to main content

ExterinalGLibMainLoopExceptionLogger Property

If Avalonia is in control of a run loop, we propagate exceptions by stopping the run loop frame and rethrowing an exception. However, if there is no Avalonia-controlled run loop frame, there is no way to report such exceptions, since allowing those to escape native->managed call boundary will likely brick GLib machinery since it's not aware of managed Exceptions This property allows to inspect such exceptions before they will be ignored

Definition

Namespace: Avalonia
Assembly: Avalonia.X11 (in Avalonia.X11.dll)

public Action<Exception>? ExterinalGLibMainLoopExceptionLogger { get; set; }

Property Value

Action(Exception)

See Also

Reference

X11PlatformOptions Class
Avalonia Namespace