31 lines
691 B
C#
31 lines
691 B
C#
|
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);
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
}
|
|||
|
}
|