Click or drag to resize
Ab4d.SharpEngine logo

ResourceTracker Methods

The ResourceTracker type exposes the following members.

Methods
 NameDescription
Public methodStatic memberAddResource Add an object to the list of tracked resources.
Public methodStatic memberCleanTrackedResources Cleans the dead tracked resources
Public methodStatic memberDumpTrackedResources Writes formatted string with tracked resources with the System.Diagnostics.Debug.WriteLine.
Public methodStatic memberGetById 
Public methodStatic memberGetNextId Get next Id as a long value that is unique for this application. This method is thread safe and can be called from any thread. When ResourceTracking is enabled then the creation of componentBase object will be recorded and the object's lifecycle will be tracked by this ResourceTracker.
Public methodStatic memberGetTrackedResources Gets a list of ComponentBase objects that were tracked while tracking was enabled and are still alive (garbage collector did not disposed them yet).
Public methodStatic memberGetTrackedResourcesReport Gets a formatted string with tracked resources.
Public methodStatic memberStartTrackingResources Starts tracking of resources.
Public methodStatic memberStopTrackingResources Stop tracking resources.
Top
See Also