Beispiel #1
0
 public ITelemetryScope StartUserTask(TelemetryIdentifier telemetryIdentifier)
 {
     if (telemetryIdentifier == null)
     {
         throw new ArgumentNullException("telemetryIdentifier");
     }
     return(telemetryRecorder.StartUserTask(telemetryIdentifier));
 }
Beispiel #2
0
 public ITelemetryScope StartUserTask(TelemetryIdentifier telemetryIdentifier, IEnumerable <DataPoint> properties)
 {
     if (telemetryIdentifier == null)
     {
         throw new ArgumentNullException("telemetryIdentifier");
     }
     return(telemetryRecorder.StartUserTask(telemetryIdentifier, properties));
 }
Beispiel #3
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;
 }
Beispiel #4
0
 public void PostFault(TelemetryIdentifier telemetryIdentifier, string description, Exception exception)
 {
     //IL_0028: Unknown result type (might be due to invalid IL or missing references)
     //IL_0032: Expected O, but got Unknown
     if (telemetryIdentifier == null)
     {
         throw new ArgumentNullException("telemetryIdentifier");
     }
     telemetryRecorder.RecordEvent((TelemetryEvent)(object)new FaultEvent(telemetryIdentifier.Value, description, exception, (Func <IFaultUtility, int>)SendFaultToWatson));
 }
Beispiel #5
0
 public void PostUserTask(TelemetryIdentifier telemetryIdentifier, TelemetryResult result)
 {
     //IL_001a: Unknown result type (might be due to invalid IL or missing references)
     //IL_001c: Unknown result type (might be due to invalid IL or missing references)
     //IL_0026: Expected O, but got Unknown
     if (telemetryIdentifier == null)
     {
         throw new ArgumentNullException("telemetryIdentifier");
     }
     telemetryRecorder.RecordEvent((TelemetryEvent)(object)new UserTaskEvent(telemetryIdentifier.Value, result, (string)null));
 }
Beispiel #6
0
        public void PostFault(TelemetryIdentifier telemetryIdentifier, string description, Exception exception, IEnumerable <DataPoint> properties)
        {
            //IL_0022: Unknown result type (might be due to invalid IL or missing references)
            //IL_0028: Expected O, but got Unknown
            if (telemetryIdentifier == null)
            {
                throw new ArgumentNullException("telemetryIdentifier");
            }
            FaultEvent val = (FaultEvent)(object)new FaultEvent(telemetryIdentifier.Value, description, exception, (Func <IFaultUtility, int>)SendFaultToWatson);

            DataPointCollection.AddCollectionToDictionary(properties, ((TelemetryEvent)val).Properties);
            telemetryRecorder.RecordEvent((TelemetryEvent)(object)val);
        }
Beispiel #7
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);
        }
Beispiel #8
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);
        }
Beispiel #9
0
        public void PostUserTask(TelemetryIdentifier telemetryIdentifier, TelemetryResult result, IEnumerable <DataPoint> properties)
        {
            //IL_0014: Unknown result type (might be due to invalid IL or missing references)
            //IL_0016: Unknown result type (might be due to invalid IL or missing references)
            //IL_001c: Expected O, but got Unknown
            if (telemetryIdentifier == null)
            {
                throw new ArgumentNullException("telemetryIdentifier");
            }
            UserTaskEvent val = (UserTaskEvent)(object)new UserTaskEvent(telemetryIdentifier.Value, result, (string)null);

            DataPointCollection.AddCollectionToDictionary(properties, ((TelemetryEvent)val).Properties);
            telemetryRecorder.RecordEvent((TelemetryEvent)(object)val);
        }
Beispiel #10
0
 public void PostFault(TelemetryIdentifier telemetryIdentifier, string description)
 {
     //IL_0030: Unknown result type (might be due to invalid IL or missing references)
     //IL_003a: Expected O, but got Unknown
     if (telemetryIdentifier == null)
     {
         throw new ArgumentNullException("telemetryIdentifier");
     }
     if (string.IsNullOrEmpty(description))
     {
         throw new ArgumentNullException("description");
     }
     telemetryRecorder.RecordEvent((TelemetryEvent)(object)new FaultEvent(telemetryIdentifier.Value, description, (Exception)null, (Func <IFaultUtility, int>)null));
 }
Beispiel #11
0
        public void PostOperation(TelemetryIdentifier telemetryIdentifier, TelemetryResult result)
        {
            //IL_0014: Unknown result type (might be due to invalid IL or missing references)
            //IL_0016: Unknown result type (might be due to invalid IL or missing references)
            //IL_001c: Expected O, but got Unknown
            //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");
            }
            OperationEvent val = (OperationEvent)(object)new OperationEvent(telemetryIdentifier.Value, result, (string)null);

            EndEvent.Correlate(((TelemetryEvent)val).Correlation);
            TelemetryRecorder.RecordEvent((TelemetryEvent)(object)val);
        }
Beispiel #12
0
        public void SetProperty(TelemetryIdentifier propertyIdentifier, object propertyValue, bool shared = false, bool pii = false)
        {
            //IL_0016: Unknown result type (might be due to invalid IL or missing references)
            if (propertyIdentifier == null)
            {
                throw new ArgumentNullException("propertyIdentifier");
            }
            object value = pii ? ((object)new TelemetryPiiProperty(propertyValue)) : propertyValue;

            if (shared)
            {
                sharedProperties.Add(propertyIdentifier, value);
            }
            else
            {
                ((TelemetryEvent)endEvent).Properties[propertyIdentifier.Value] = value;
            }
        }
Beispiel #13
0
 internal VSTelemetryScope(TelemetryScope <T> telemetryScope, TelemetryIdentifier identifier, ITelemetryRecorder telemetryRecorder, ITelemetryScope parentScope)
     : base((OperationEvent)(object)telemetryScope.EndEvent, identifier, telemetryRecorder, parentScope)
 {
     this.telemetryScope = telemetryScope;
 }
Beispiel #14
0
 public void Add(TelemetryIdentifier identifier, object value)
 {
     Add(new DataPoint(identifier, value));
 }
Beispiel #15
0
 public ITelemetryScope StartOperation(TelemetryIdentifier telemetryIdentifier, ITelemetryScope parentScope)
 {
     return(new VSTelemetryScope <OperationEvent>(TelemetrySessionExtensions.StartOperation(defaultSession, telemetryIdentifier.Value), telemetryIdentifier, this, parentScope));
 }
Beispiel #16
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));
 }
Beispiel #17
0
 protected TelemetryScopeBase(OperationEvent operationEvent, TelemetryIdentifier telemetryIdentifier, ITelemetryRecorder telemetryRecorder, ITelemetryScope parentScope)
     : this(operationEvent, telemetryIdentifier, telemetryRecorder)
 {
     this.parentScope = parentScope;
     rootScope        = (this.parentScope.Root ?? this.parentScope);
 }
Beispiel #18
0
 public ITelemetryScope StartUserTask(TelemetryIdentifier telemetryIdentifier)
 {
     return(new VSTelemetryScope <UserTaskEvent>(TelemetrySessionExtensions.StartUserTask(defaultSession, telemetryIdentifier.Value), telemetryIdentifier, this));
 }