Resource |
The ResourceTracker type exposes the following members.
Name | Description | |
---|---|---|
AddResource | Add an object to the list of tracked resources. | |
CleanTrackedResources | Cleans the dead tracked resources | |
DumpTrackedResources | Writes formatted string with tracked resources with the System.Diagnostics.Debug.WriteLine. | |
GetById | ||
GetNextId | 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. | |
GetTrackedResources | Gets a list of ComponentBase objects that were tracked while tracking was enabled and are still alive (garbage collector did not disposed them yet). | |
GetTrackedResourcesReport | Gets a formatted string with tracked resources. | |
StartTrackingResources | Starts tracking of resources. | |
StopTrackingResources | Stop tracking resources. |