public IEtwActivityReverter StartActivity(Guid relatedActivityId) { EtwActivityReverter reverter = new EtwActivityReverter(this, this.CurrentActivityId); this.CurrentActivityId = EventProvider.CreateActivityId(); if (relatedActivityId != Guid.Empty) { EventDescriptor eventDescriptor = this._transferEvent; this._transferProvider.WriteTransferEvent(ref eventDescriptor, relatedActivityId, new object[0]); } return reverter; }
public IEtwActivityReverter StartActivity(Guid relatedActivityId) { EtwActivityReverter reverter = new EtwActivityReverter(this, this.CurrentActivityId); this.CurrentActivityId = EventProvider.CreateActivityId(); if (relatedActivityId != Guid.Empty) { EventDescriptor eventDescriptor = this._transferEvent; this._transferProvider.WriteTransferEvent(ref eventDescriptor, relatedActivityId, new object[0]); } return(reverter); }
/// <summary> /// Implements <see cref="IEtwEventCorrelator.StartActivity(Guid)" />. /// </summary> public IEtwActivityReverter StartActivity(Guid relatedActivityId) { var retActivity = new EtwActivityReverter(this, CurrentActivityId); CurrentActivityId = EventProvider.CreateActivityId(); if (relatedActivityId != Guid.Empty) { var tempTransferEvent = _transferEvent; _transferProvider.WriteTransferEvent(ref tempTransferEvent, relatedActivityId); } return(retActivity); }
/// <summary> /// Implements <see cref="IEtwEventCorrelator.StartActivity(Guid)" />. /// </summary> public IEtwActivityReverter StartActivity(Guid relatedActivityId) { var retActivity = new EtwActivityReverter(this, CurrentActivityId); CurrentActivityId = EventProvider.CreateActivityId(); if (relatedActivityId != Guid.Empty) { var tempTransferEvent = _transferEvent; _transferProvider.WriteTransferEvent(ref tempTransferEvent, relatedActivityId); } return retActivity; }