コード例 #1
0
        /// <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);
            }
        }
コード例 #2
0
        /// <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);
        }