[Bug] Deserialization of IntegrationEvent #667
https://github.com/dotnet-architecture/eShopOnContainers/issues/667
This commit is contained in:
parent
bb8dd63e69
commit
4e9716667a
@ -1,4 +1,5 @@
|
|||||||
using System;
|
using System;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
namespace Microsoft.eShopOnContainers.BuildingBlocks.EventBus.Events
|
namespace Microsoft.eShopOnContainers.BuildingBlocks.EventBus.Events
|
||||||
{
|
{
|
||||||
@ -10,7 +11,17 @@ namespace Microsoft.eShopOnContainers.BuildingBlocks.EventBus.Events
|
|||||||
CreationDate = DateTime.UtcNow;
|
CreationDate = DateTime.UtcNow;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Guid Id { get; }
|
[JsonConstructor]
|
||||||
public DateTime CreationDate { get; }
|
public IntegrationEvent(Guid id, DateTime createDate)
|
||||||
|
{
|
||||||
|
Id = id;
|
||||||
|
CreationDate = createDate;
|
||||||
|
}
|
||||||
|
|
||||||
|
[JsonProperty]
|
||||||
|
public Guid Id { get; private set; }
|
||||||
|
|
||||||
|
[JsonProperty]
|
||||||
|
public DateTime CreationDate { get; private set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user