Adds Generic CommandHandlerDecorator
This commit is contained in:
parent
49f9b99ee1
commit
64e696dc5a
21 changed files with 131 additions and 110 deletions
16
Core/CommandQueries/CommandResponse.cs
Normal file
16
Core/CommandQueries/CommandResponse.cs
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
namespace PlanTempus.Core.CommandQueries;
|
||||
|
||||
public class CommandResponse
|
||||
{
|
||||
public Guid RequestId { get; }
|
||||
public Guid CorrelationId { get; }
|
||||
public Guid? TransactionId { get; }
|
||||
public DateTime CreatedAt { get; }
|
||||
|
||||
public CommandResponse(Guid correlationId)
|
||||
{
|
||||
CorrelationId = correlationId;
|
||||
RequestId = Guid.CreateVersion7();
|
||||
CreatedAt = DateTime.Now;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue