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); }
public void Dispose() { ExPerfTrace.EventActivityIdControl(ExPerfTrace.EVENT_ACTIVITY_CTRL.SET_ID, ref this.originalActivityId); }