重构代码并抽取基础构建库

This commit is contained in:
administrator committed 2025-03-20 22:13:45 +08:00
1 parent 9e6b5be92c
commit ccf1e7672d
55 files changed
+398 -104

No files matched your search

@@ -0,0 +1,24 @@
// Copyright (c) HelloShop Corporation. All rights reserved.
// See the license file in the project root for more information.
using System.Text.Json;
using System.Text.Json.Serialization;
namespace HelloShop.EventBus.Abstractions
{
public record DistributedEvent
{
public DistributedEvent()
{
Id = Guid.NewGuid();
CreationTime = TimeProvider.System.GetUtcNow();
}
public Guid Id { get; set; }
public DateTimeOffset CreationTime { get; set; }
[JsonExtensionData]
public Dictionary<string, JsonElement>? ExtensionData { get; set; }
}
}