/// <summary> /// Logs an event to the audit log using the format as described in DICOM Supplement 95. /// </summary> /// <remarks> /// Use this overload to explicitly specify the user and session ID. /// </remarks> /// <param name="message">The audit message to log.</param> /// <param name="username"></param> /// <param name="sessionId"></param> private static void Log(DicomAuditHelper message, string username, string sessionId) { if (AuditingEnabled) { AuditLog.WriteEntry(message.Operation, message.Serialize(false), username, sessionId); } }
/// <summary> /// Logs an event to the audit log using the format as described in DICOM Supplement 95. /// </summary> /// <param name="message">The audit message to log.</param> public static void Log(DicomAuditHelper message) { if (AuditingEnabled) { AuditLog.WriteEntry(message.Operation, message.Serialize(false)); } }