parent
a914ce8153
commit
a103da2a51
@ -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…
Reference in new issue