using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CloudBuilder.Core.DependencyInjection.EventBuses
{
    /// <summary>
    /// 定义事件数据，所有事件都要实现该接口
    /// </summary>
    public class EventData
    {
        /// <summary>
        /// 获取 事件编号
        /// </summary>
        public string? EventId { get; set; }
        /// <summary>
        /// 获取 事件发生的时间
        /// </summary>
        public DateTime EventTime { get; } = DateTime.Now;
        /// <summary>
        /// 获取或设置 事件源，触发事件的对象
        /// </summary>
        public object? EventSource { get; set; }
    }
}
