예제 #1
0
 public void WriteEntry(string source, string message, IEventType eventType)
 {
     _eventLog.Source = source;
     _eventLog.WriteEntry(message, (EventLogEntryType)Enum.Parse(typeof(EventLogEntryType), eventType.ToString()));
 }
예제 #2
0
 public bool Responsible(IEventType eventType)
 {
     return(eventType.ToString().Equals(new EventTypes().Error()) || eventType.ToString().Equals(new EventTypes().Critical()));
 }
예제 #3
0
 public bool Responsible(IEventType eventType)
 {
     return(eventType.ToString().Equals(new EventTypes().Information()) || eventType.ToString().Equals(new EventTypes().Warning()));
 }