重构代码并抽取基础构建库
This commit is contained in:
1 parent
9e6b5be92c
commit
ccf1e7672d
55 files changed
+398
-104
No files matched your search
@@ -0,0 +1,29 @@
|
||||
// Copyright (c) HelloShop Corporation. All rights reserved.
|
||||
// See the license file in the project root for more information.
|
||||
|
||||
using Dapr;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace HelloShop.EventBus.Dapr
|
||||
{
|
||||
public class DaprCloudEvent<TData>(TData data) : CloudEvent<TData>(data)
|
||||
{
|
||||
/// <summary>
|
||||
/// CloudEvent 'pubsubname' attribute.
|
||||
/// </summary>
|
||||
[JsonPropertyName("pubsubname")]
|
||||
public required string PubSubName { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// CloudEvent 'topic' attribute.
|
||||
/// </summary>
|
||||
[JsonPropertyName("topic")]
|
||||
public required string Topic { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// CloudEvent 'time' attribute.
|
||||
/// </summary>
|
||||
[JsonPropertyName("time")]
|
||||
public required DateTimeOffset Time { get; init; }
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user