old_flsystem/应用/BackupAndImport/速推客云端/EventLog.cs

31 lines
691 B
C#
Raw Normal View History

2022-09-29 10:35:00 +00:00
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> LogEvent;
public static void OnEvent(object sender, string log)
{
OnEvent(sender, new LogEvent(log));
}
/// <summary>
/// 输出日志
/// </summary>
internal static void OnEvent(object sender, LogEvent e)
{
if (LogEvent != null)
{
LogEvent.Invoke(sender, e);
}
}
}
}