GCNotification
Provides a way to receive notifications from Garbage Collector asynchronously.
Represents callback registration.
Creates a filter that triggers notification on every GC occurred.
Creates a filter that allows to detect garbage collection of the specified generation.
Creates a filter that allows to detect heap compaction.
Creates a filter that allows to detect managed heap fragmentation threshold.
Creates a filter that allows to detect managed heap occupation.
Combines two filters using logical AND.
Combines two filters using logical OR.
Combines two filters using logical XOR.
Negates the filter.
Combines two filters using logical AND.
Combines two filters using logical XOR.
Negates this filter.
Combines two filters using logical OR.
public Registration Register<T>(Action<T, GCMemoryInfo> callback, T state, bool captureContext = false)
Registers a callback to be executed asynchronously on approach of GC notification.
Waits for GC notification asynchronously.
Waits for GC notification asynchronously.