public void Dispose() { if (!Successful) { _properties.Add("Execution", "UNSUCCESSFUL"); _properties.Add("OriginalEvent", _auditEvent); _properties.Add("StartedAt", _startedAt); var result = new AuditEvent(_auditEvent.AuditCategory, _auditEvent.EventId, "UNSUCCESSFUL " + _auditEvent.AuditCategory, _operationName); SnLog.WriteAudit(result, _properties); } }
public static void WriteUnsuccessfulAudit(AuditEvent auditEvent, string operationMessage, IDictionary <string, object> properties) { SnLog.WriteAudit(new AuditEvent(auditEvent.AuditCategory, auditEvent.EventId, "UNSUCCESSFUL " + auditEvent.AuditCategory, operationMessage), properties); }
public static void WriteAudit(AuditEvent auditEvent, IDictionary <string, object> properties) { SnLog.WriteAudit(auditEvent, properties); }