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); }
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); }
public void SetProperties(IEnumerable <DataPoint> properties, bool shared = false) { if (properties == null) { throw new ArgumentNullException("properties"); } if (shared) { sharedProperties.AddRange(properties); } else { DataPointCollection.AddCollectionToDictionary(properties, ((TelemetryEvent)endEvent).Properties); } }
public VSTelemetryEvent(OperationEvent operationEvent) { endEvent = (operationEvent ?? throw new ArgumentNullException("operationEvent")); sharedProperties = new DataPointCollection(); }