Keeps track of objects that implement the IDisposable interface so objects that are not disposed can be located.
Disposable objects implement the IDisposable interface. Their creation/destruction is tracked using the DisposableTracker class. Admin > Dashboard > Disposable Tracker (standard YetaWF site) can be used to review and objects that are currently tracked. If objects are shown they should be checked as they are possible leaks.
Some classes deliberately create near permanent disposable object. These are SiteDefinition, LanguageData and LogRecordDataProvider and some other. More than one object may be created per class. Only objects with explicit calls to DisposableTracker.AddObject/RemoveObject are tracked.
Namespace: YetaWF.Core.Support
Assembly: YetaWF.Core
Inheritance
public static class DisposableTracker;
This class cannot be instantiated.
UseTracker | Returns whether objects are tracked. This is defined using AppSettings.json. |
AddObject | Adds an object to track. | |
Equals | Determines whether the specified object is equal to the current object. | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. | |
GetDisposableObjects | Returns a collection of all tracked objects that have not yet been disposed. | |
GetHashCode | Serves as the default hash function. | |
GetType | Gets the Type of the current instance. | |
MemberwiseClone | Creates a shallow copy of the current Object. | |
ReferenceEquals | Determines whether the specified Object instances are the same instance. | |
RemoveObject | Removes a tracked object, meaning it is being disposed. | |
ToString | Returns a string that represents the current object. |
See Also YetaWF.Core Overview
Documentation Feedback
© 2024 - Softel vdm, Inc. - YetaWF.com