Ejemplo n.º 1
0
 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;
 }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
        /// <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);
        }
Ejemplo n.º 4
0
        /// <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;
        }