Esempio n. 1
0
 public static void ReplicationInitiated()
 {
     using (var customLog = EventLogFactory.CreateNew())
     {
         string message = string.Format(AuditEvents.AlarmReplicationInitiated, DateTime.Now);
         customLog.WriteEntry(message, EventLogEntryType.Information);
     }
 }
Esempio n. 2
0
 public static void ReplicationSuccess(Alarm alarm)
 {
     using (var customLog = EventLogFactory.CreateNew())
     {
         string message = string.Format(AuditEvents.AlarmReplicationSuccess, alarm);
         customLog.WriteEntry(message, EventLogEntryType.Information);
     }
 }
Esempio n. 3
0
 public static void ReplicationFailure(Alarm alarm, string reason = "")
 {
     using (var customLog = EventLogFactory.CreateNew())
     {
         string message = string.Format(AuditEvents.AlarmReplicationFailure, alarm, reason);
         customLog.WriteEntry(message, EventLogEntryType.Error);
     }
 }