Ejemplo n.º 1
0
            public ActivityFrame(Guid newActivityId)
            {
                this.originalActivityId = Guid.Empty;
                Guid empty = Guid.Empty;

                if (ExPerfTrace.EventActivityIdControl(ExPerfTrace.EVENT_ACTIVITY_CTRL.GET_ID, ref empty) == 0U)
                {
                    this.originalActivityId = empty;
                }
                ExPerfTrace.EventActivityIdControl(ExPerfTrace.EVENT_ACTIVITY_CTRL.SET_ID, ref newActivityId);
            }
Ejemplo n.º 2
0
 public void Dispose()
 {
     ExPerfTrace.EventActivityIdControl(ExPerfTrace.EVENT_ACTIVITY_CTRL.SET_ID, ref this.originalActivityId);
 }