removed newton json package

master
Young 7 months ago
parent a914ce8153
commit a103da2a51

@ -11,7 +11,6 @@
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="Newtonsoft.Json" Version="13.0.3"/>
<PackageReference Include="RabbitMQ.Client" Version="6.8.1"/> <PackageReference Include="RabbitMQ.Client" Version="6.8.1"/>
<PackageReference Include="Polly" Version="8.4.2" /> <PackageReference Include="Polly" Version="8.4.2" />
</ItemGroup> </ItemGroup>

@ -1,15 +1,12 @@
using Newtonsoft.Json;
namespace Infrastructure.EventBus; namespace Infrastructure.EventBus;
[method: JsonConstructor]
public class IntegrationEvent(Guid id, DateTime createdDate) public class IntegrationEvent(Guid id, DateTime createdDate)
{ {
public IntegrationEvent() : this(Guid.NewGuid(), DateTime.UtcNow) 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;
} }
Loading…
Cancel
Save