Exemple #1
0
        public void PostFault(TelemetryIdentifier telemetryIdentifier, string description, Exception exception)
        {
            //IL_0022: Unknown result type (might be due to invalid IL or missing references)
            //IL_0028: Expected O, but got Unknown
            //IL_0037: Unknown result type (might be due to invalid IL or missing references)
            //IL_003c: Unknown result type (might be due to invalid IL or missing references)
            if (telemetryIdentifier == null)
            {
                throw new ArgumentNullException("telemetryIdentifier");
            }
            FaultEvent val = (FaultEvent)(object)new FaultEvent(telemetryIdentifier.Value, description, exception, (Func <IFaultUtility, int>)SendFaultToWatson);

            EndEvent.Correlate(((TelemetryEvent)val).Correlation);
            TelemetryRecorder.RecordEvent((TelemetryEvent)(object)val);
        }
Exemple #2
0
        public void PostFault(TelemetryIdentifier telemetryIdentifier, string description, IEnumerable <DataPoint> properties)
        {
            //IL_0017: Unknown result type (might be due to invalid IL or missing references)
            //IL_001d: Expected O, but got Unknown
            //IL_0038: Unknown result type (might be due to invalid IL or missing references)
            //IL_003d: Unknown result type (might be due to invalid IL or missing references)
            if (telemetryIdentifier == null)
            {
                throw new ArgumentNullException("telemetryIdentifier");
            }
            FaultEvent val = (FaultEvent)(object)new FaultEvent(telemetryIdentifier.Value, description, (Exception)null, (Func <IFaultUtility, int>)null);

            DataPointCollection.AddCollectionToDictionary(properties, ((TelemetryEvent)val).Properties);
            EndEvent.Correlate(((TelemetryEvent)val).Correlation);
            TelemetryRecorder.RecordEvent((TelemetryEvent)(object)val);
        }
Exemple #3
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);
        }
Exemple #4
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
            //IL_0037: Unknown result type (might be due to invalid IL or missing references)
            //IL_003c: Unknown result type (might be due to invalid IL or missing references)
            if (telemetryIdentifier == null)
            {
                throw new ArgumentNullException("telemetryIdentifier");
            }
            UserTaskEvent val = (UserTaskEvent)(object)new UserTaskEvent(telemetryIdentifier.Value, result, (string)null);

            DataPointCollection.AddCollectionToDictionary(properties, ((TelemetryEvent)val).Properties);
            EndEvent.Correlate(((TelemetryEvent)val).Correlation);
            TelemetryRecorder.RecordEvent((TelemetryEvent)(object)val);
        }
Exemple #5
0
        public void PostFault(TelemetryIdentifier telemetryIdentifier, string description)
        {
            //IL_002a: Unknown result type (might be due to invalid IL or missing references)
            //IL_0030: Expected O, but got Unknown
            //IL_003f: Unknown result type (might be due to invalid IL or missing references)
            //IL_0044: Unknown result type (might be due to invalid IL or missing references)
            if (telemetryIdentifier == null)
            {
                throw new ArgumentNullException("telemetryIdentifier");
            }
            if (string.IsNullOrEmpty(description))
            {
                throw new ArgumentNullException("description");
            }
            FaultEvent val = (FaultEvent)(object)new FaultEvent(telemetryIdentifier.Value, description, (Exception)null, (Func <IFaultUtility, int>)null);

            EndEvent.Correlate(((TelemetryEvent)val).Correlation);
            TelemetryRecorder.RecordEvent((TelemetryEvent)(object)val);
        }