You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
380 B

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;
[JsonProperty] public DateTime CreatedDate { get; private set; } = createdDate;
}