public void TrackSystemEvent(Guid correlationId, Enums.EnrollmentEvent eventName, Dictionary <string, string> properties) { try { if (IsLogTrack) { if (properties != null) { properties.Add("LogFileName", logFileName); properties.Add("PreciseTimeStamp", DateTime.Now.Ticks.ToString()); } TelemetryClient.Context.Operation.Id = correlationId.ToString(); if (properties != null) { TelemetryClient.TrackEvent(eventName.ToString(), properties); } else { TelemetryClient.TrackEvent(eventName.ToString()); } TelemetryClient.Flush(); } } catch (LogMangerException) { throw; } catch (Exception innerException) { throw new LogMangerException(nameof(ErrorCodeMessages.LoggerError106) + ": " + ErrorCodeMessages.LoggerError106, innerException); } }
public void TrackSystemEvent(Guid correlationId, Enums.EnrollmentEvent eventName, Dictionary <string, string> properties) { try { if (IsLogTrack) { LogEntry2("TrackSystemEvent :" + eventName + ", " + properties.ToDebugString()); } } catch (LogMangerException) { throw; } catch (Exception innerException) { throw new LogMangerException(nameof(ErrorCodeMessages.LoggerError106) + ": " + ErrorCodeMessages.LoggerError106, innerException); } }
public void TrackSystemEvent(Guid correlationId, Enums.EnrollmentEvent eventName, Dictionary <string, string> properties) { try { if (IsLogTrack) { LogEntry2(new CSVFileLogMessage() { CorrelationId = correlationId, LogType = Enums.LogType.Track, Message = eventName.ToString() + " - " + properties.ToDebugString() }); } } catch (LogMangerException) { throw; } catch (Exception innerException) { throw new LogMangerException(nameof(ErrorCodeMessages.LoggerError106) + ": " + ErrorCodeMessages.LoggerError106, innerException); } }