Class TrackedSection
Defines a concurrent section within the code
public class TrackedSection
- Inheritance
-
objectTrackedSection
- Extension Methods
Constructors
TrackedSection(string)
Constructor
public TrackedSection(string name)
Parameters
name
stringName of the track
Fields
mTracks
List of guids identifying the tracks on which this section belongs to
protected List<Guid> mTracks
Field Value
- List<Guid>
Properties
Name
Section name
public string Name { get; protected set; }
Property Value
- string
Started
Time when the section has started
public DateTime Started { get; protected set; }
Property Value
- DateTime
ThreadID
Section thread ID
public int ThreadID { get; protected set; }
Property Value
- int
Methods
AddTrack(Guid)
Adds the given track to the section
protected void AddTrack(Guid trackGuid)
Parameters
trackGuid
GuidTrack GUID
Dispose()
Disposes the object
public void Dispose()
RemoveTrack(Guid)
Removes the given track from the section
protected void RemoveTrack(Guid trackGuid)
Parameters
trackGuid
GuidTrack GUID
TrackOpenSections(string, string)
Tracks the current list of running concurrent sections
public static void TrackOpenSections(string name, string reason)
Parameters
name
stringTrack name
reason
stringTrack reason