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; }
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; }
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); }
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); }
internal VSTelemetryScope(TelemetryScope <T> telemetryScope, TelemetryIdentifier identifier, ITelemetryRecorder telemetryRecorder, ITelemetryScope parentScope) : base((OperationEvent)(object)telemetryScope.EndEvent, identifier, telemetryRecorder, parentScope) { this.telemetryScope = telemetryScope; }
protected TelemetryScopeBase(OperationEvent operationEvent, TelemetryIdentifier telemetryIdentifier, ITelemetryRecorder telemetryRecorder, ITelemetryScope parentScope) : this(operationEvent, telemetryIdentifier, telemetryRecorder) { this.parentScope = parentScope; rootScope = (this.parentScope.Root ?? this.parentScope); }
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)); }
public ITelemetryScope StartOperation(TelemetryIdentifier telemetryIdentifier, ITelemetryScope parentScope) { return(new VSTelemetryScope <OperationEvent>(TelemetrySessionExtensions.StartOperation(defaultSession, telemetryIdentifier.Value), telemetryIdentifier, this, parentScope)); }