Пример #1
0
        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);
            }
        }
Пример #2
0
 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);
 }
Пример #3
0
 public static void WriteAudit(AuditEvent auditEvent, IDictionary <string, object> properties)
 {
     SnLog.WriteAudit(auditEvent, properties);
 }