From a103da2a51f858fa9b57f2b914e3a1273b78518f Mon Sep 17 00:00:00 2001 From: Young Date: Sat, 26 Oct 2024 11:34:14 +0800 Subject: [PATCH] removed newton json package --- src/Infrastructure.EventBus/Infrastructure.EventBus.csproj | 1 - src/Infrastructure.EventBus/IntegrationEvent.cs | 7 ++----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/Infrastructure.EventBus/Infrastructure.EventBus.csproj b/src/Infrastructure.EventBus/Infrastructure.EventBus.csproj index 76221e9..c9fd09a 100644 --- a/src/Infrastructure.EventBus/Infrastructure.EventBus.csproj +++ b/src/Infrastructure.EventBus/Infrastructure.EventBus.csproj @@ -11,7 +11,6 @@ - diff --git a/src/Infrastructure.EventBus/IntegrationEvent.cs b/src/Infrastructure.EventBus/IntegrationEvent.cs index 6bcaf13..a37dfac 100644 --- a/src/Infrastructure.EventBus/IntegrationEvent.cs +++ b/src/Infrastructure.EventBus/IntegrationEvent.cs @@ -1,15 +1,12 @@ -using Newtonsoft.Json; - namespace Infrastructure.EventBus; -[method: JsonConstructor] public class IntegrationEvent(Guid id, DateTime createdDate) { public IntegrationEvent() : this(Guid.NewGuid(), DateTime.UtcNow) { } - [JsonProperty] public Guid Id { get; private set; } = id; + public Guid Id { get; private set; } = id; - [JsonProperty] public DateTime CreatedDate { get; private set; } = createdDate; + public DateTime CreatedDate { get; private set; } = createdDate; } \ No newline at end of file