packages/Microsoft.Diagnostics.Tracing.EventSource.Redist.1.1.28/lib/net40/Microsoft.Diagnostics.Tracing.EventSource.XML
(开头部分) 198KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?xml version="1.0"?>
<doc>
<assembly>
<name>Microsoft.Diagnostics.Tracing.EventSource</name>
</assembly>
<members>
<member name="T:Microsoft.Diagnostics.Tracing.ActivityTracker">
<summary>
Tracks activities. This is meant to be a singleton (accessed by the ActivityTracer.Instance static property)
Logically this is simply holds the m_current variable that holds the async local that holds the current ActivityInfo
An ActivityInfo is represents a activity (which knows its creator and thus knows its path).
Most of the magic is in the async local (it gets copied to new tasks)
On every start event call OnStart
Guid activityID;
Guid relatedActivityID;
if (OnStart(activityName, out activityID, out relatedActivityID, ForceStop, options))
// Log Start event with activityID and relatedActivityID
On every stop event call OnStop
Guid activityID;
if (OnStop(activityName, ref activityID ForceStop))
// Stop event with activityID
On any normal event log the event with activityTracker.CurrentActivityId
</summary>
</member>
<member name="M:Microsoft.Diagnostics.Tracing.ActivityTracker.OnStart(System.String,System.String,System.Int32,System.Guid@,System.Guid@,Microsoft.Diagnostics.Tracing.EventActivityOptions)">
<summary>
Called on work item begins. The activity name = providerName + activityName without 'Start' suffix.
It updates CurrentActivityId to track.
It returns true if the Start should be logged, otherwise (if it is illegal recursion) it return false.
The start event should use as its activity ID the CurrentActivityId AFTER calling this routine and its
RelatedActivityID the CurrentActivityId BEFORE calling this routine (the creator).
If activity tracing is not on, then activityId and relatedActivityId are not set
</summary>
</member>
<member name="M:Microsoft.Diagnostics.Tracing.ActivityTracker.OnStop(System.String,System.String,System.Int32,System.Guid@)">
<summary>
Called when a work item stops. The activity name = providerName + activityName without 'Stop' suffix.
It updates m_current variable to track this fact. The Stop event associated with stop should log the ActivityID associated with the event.
If activity tracing is not on, then activityId and relatedActivityId are not set
</summary>
</member>
<member name="M:Microsoft.Diagnostics.Tracing.ActivityTracker.Enable">
<summary>
Turns on activity tracking. It is sticky, once on it stays on (race issues otherwise)
</summary>
</member>
<member name="M:Microsoft.Diagnostics.Tracing.ActivityTracker.FindActiveActivity(System.String,Microsoft.Diagnostics.Tracing.ActivityTracker.ActivityInfo)">
<summary>
Searched for a active (nonstopped) activity with the given name. Returns null if not found.
后面还有 3693 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读 AI
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
