using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using BackupAndImport.ECO.Events; namespace BackupAndImport.速推客云端 { public class EventLog { public static event EventHandler LogEvent; public static void OnEvent(object sender, string log) { OnEvent(sender, new LogEvent(log)); } /// /// 输出日志 /// internal static void OnEvent(object sender, LogEvent e) { if (LogEvent != null) { LogEvent.Invoke(sender, e); } } } }