/// <summary> /// Create and fire event /// </summary> public static void SendMonitorEvent(EventLog eventLog, string message, EventLogEntryType eventType, int eventID) { SenderMonitorEvent MonitorEvent = new SenderMonitorEvent(eventLog, message, eventType, eventID); try { Instrumentation.Fire(MonitorEvent); } catch //(Exception ex) { //new SenderMonitorEvent(eventLog, ex.ToString(), EventLogEntryType.Error); } }
/// <summary> /// Create and fire event /// </summary> public static void sendMonitorEvent(EventLog eventLog, string message, EventLogEntryType eventType) { SenderMonitorEvent MonitorEvent = new SenderMonitorEvent(eventLog, message, eventType); Instrumentation.Fire(MonitorEvent); }