2 Star 0 Fork 0

github__fork/EasyCode

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
IntegrationEvent.cs 695 Bytes
一键复制 编辑 原始数据 按行查看 历史
luckearth 提交于 2019-09-14 21:13 +08:00 . 增加消息队列RabiitMQ
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Text;
namespace EasyCode.EventBus.Events
{
/// <summary>
/// 聚合事件基类
/// </summary>
public class IntegrationEvent
{
public IntegrationEvent()
{
Id = Guid.NewGuid();
CreationDate = DateTime.UtcNow;
}
[JsonConstructor]
public IntegrationEvent(Guid id, DateTime createDate)
{
Id = id;
CreationDate = createDate;
}
[JsonProperty]
public Guid Id { get; private set; }
[JsonProperty]
public DateTime CreationDate { get; private set; }
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C#
1
https://gitee.com/github__fork/EasyCode.git
git@gitee.com:github__fork/EasyCode.git
github__fork
EasyCode
EasyCode
master

搜索帮助