Table of Contents

Class TrackedSection

Namespace
CMS.Helpers
Assembly
CMS.Helpers.dll

Defines a concurrent section within the code

public class TrackedSection
Inheritance
object
TrackedSection
Extension Methods

Constructors

TrackedSection(string)

Constructor

public TrackedSection(string name)

Parameters

name string

Name 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 Guid

Track GUID

Dispose()

Disposes the object

public void Dispose()

RemoveTrack(Guid)

Removes the given track from the section

protected void RemoveTrack(Guid trackGuid)

Parameters

trackGuid Guid

Track GUID

TrackOpenSections(string, string)

Tracks the current list of running concurrent sections

public static void TrackOpenSections(string name, string reason)

Parameters

name string

Track name

reason string

Track reason