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