LibraryEvents Class

Defines library-level static events.

Definition

Namespace: Gemstone
Assembly: Gemstone.Common (in Gemstone.Common.dll) Version: 1.0.128 -- Release Build+d050cfc5563c89a1188cc3c6b2d417530856f490
public static class LibraryEvents
Inheritance
Object    LibraryEvents

Remarks

The LibraryEvents class automatically attaches to the UnobservedTaskException event so that any unobserved task exceptions encountered will be marked as observed and exposed via the SuppressedException event.
To disable this feature and only use custom UnobservedTaskException event handling, call the DisableUnobservedTaskExceptionHandling method during program initialization.

Methods

DisableUnobservedTaskExceptionHandling Disables automatic handling of UnobservedTaskException events. When disabled, any unobserved task exceptions encountered will not be marked as observed nor exposed via the SuppressedException event.
EnableUnobservedTaskExceptionHandling Enables automatic handling of UnobservedTaskException events. When enabled, any unobserved task exceptions encountered are marked as observed and exposed via the SuppressedException event.

Events

SuppressedException Exposes exceptions that were suppressed but otherwise unhandled.

See Also