Exemplo n.º 1
0
 protected TelemetryScopeBase(OperationEvent operationEvent, TelemetryIdentifier telemetryIdentifier, ITelemetryRecorder telemetryRecorder)
 {
     //IL_0008: Unknown result type (might be due to invalid IL or missing references)
     result            = (TelemetryResult)0;
     TelemetryEvent    = (telemetryIdentifier ?? throw new ArgumentNullException("telemetryIdentifier"));
     TelemetryRecorder = (telemetryRecorder ?? throw new ArgumentNullException("telemetryRecorder"));
     endEvent          = new VSTelemetryEvent(operationEvent);
     rootScope         = this;
 }
Exemplo n.º 2
0
 protected virtual void Dispose(bool disposing)
 {
     if (!disposed && disposing)
     {
         for (ITelemetryScope telemetryScope = this; telemetryScope != null; telemetryScope = telemetryScope.Parent)
         {
             endEvent.SetProperties(telemetryScope.EndEvent.SharedProperties);
         }
     }
     disposed = true;
 }
Exemplo n.º 3
0
        public ITelemetryScope StartOperation(TelemetryIdentifier telemetryIdentifier)
        {
            //IL_002b: Unknown result type (might be due to invalid IL or missing references)
            //IL_0030: Unknown result type (might be due to invalid IL or missing references)
            if (telemetryIdentifier == null)
            {
                throw new ArgumentNullException("telemetryIdentifier");
            }
            ITelemetryScope telemetryScope = TelemetryRecorder.StartOperation(telemetryIdentifier, this);

            endEvent.Correlate(telemetryScope.Correlation);
            return(telemetryScope);
        }
Exemplo n.º 4
0
        public ITelemetryScope StartUserTask(TelemetryIdentifier telemetryIdentifier, IEnumerable <DataPoint> properties)
        {
            //IL_002c: Unknown result type (might be due to invalid IL or missing references)
            //IL_0031: Unknown result type (might be due to invalid IL or missing references)
            if (telemetryIdentifier == null)
            {
                throw new ArgumentNullException("telemetryIdentifier");
            }
            ITelemetryScope telemetryScope = TelemetryRecorder.StartUserTask(telemetryIdentifier, properties, this);

            endEvent.Correlate(telemetryScope.Correlation);
            return(telemetryScope);
        }
Exemplo n.º 5
0
 internal VSTelemetryScope(TelemetryScope <T> telemetryScope, TelemetryIdentifier identifier, ITelemetryRecorder telemetryRecorder, ITelemetryScope parentScope)
     : base((OperationEvent)(object)telemetryScope.EndEvent, identifier, telemetryRecorder, parentScope)
 {
     this.telemetryScope = telemetryScope;
 }
Exemplo n.º 6
0
 protected TelemetryScopeBase(OperationEvent operationEvent, TelemetryIdentifier telemetryIdentifier, ITelemetryRecorder telemetryRecorder, ITelemetryScope parentScope)
     : this(operationEvent, telemetryIdentifier, telemetryRecorder)
 {
     this.parentScope = parentScope;
     rootScope        = (this.parentScope.Root ?? this.parentScope);
 }
Exemplo n.º 7
0
 public ITelemetryScope StartOperation(TelemetryIdentifier telemetryIdentifier, IEnumerable <DataPoint> properties, ITelemetryScope parentScope)
 {
     return(new VSTelemetryScope <OperationEvent>(TelemetrySessionExtensions.StartOperation(defaultSession, telemetryIdentifier.Value, (TelemetrySeverity)0, (IDictionary <string, object>)properties.ToDictionary((DataPoint dataPoint) => dataPoint.Identity.Value, (DataPoint dataPoint) => dataPoint.Value)), telemetryIdentifier, this, parentScope));
 }
Exemplo n.º 8
0
 public ITelemetryScope StartOperation(TelemetryIdentifier telemetryIdentifier, ITelemetryScope parentScope)
 {
     return(new VSTelemetryScope <OperationEvent>(TelemetrySessionExtensions.StartOperation(defaultSession, telemetryIdentifier.Value), telemetryIdentifier, this, parentScope));
 }