public static void OnHandleEventLog(object sender, HandleEventArgs args) { if (!EventLog.SourceExists("HCSMS Application")) { EventLog.CreateEventSource("HCSMS Application", "Application"); } EventLog.WriteEntry("HCSMS Application", sender.ToString() + " : " + args.Message, EventLogEntryType.Information); }
protected virtual List<RequestHandleInfo> ProcessHandleEvent(HandleEventHandler handler, HandleEventArgs args) { if (handler != null) { return handler(this, args.RequestInfo); } else { return new List<RequestHandleInfo>(); } }