mirror of
https://github.com/meysamhadeli/booking-microservices.git
synced 2026-04-18 18:02:12 +08:00
15 lines
404 B
C#
15 lines
404 B
C#
using BuildingBlocks.IdsGenerator;
|
|
using BuildingBlocks.Utils;
|
|
using ICommand = BuildingBlocks.Core.CQRS.ICommand;
|
|
|
|
namespace BuildingBlocks.Core.Event;
|
|
|
|
public class InternalCommand : IInternalCommand, ICommand
|
|
{
|
|
public long Id { get; set; } = SnowFlakIdGenerator.NewId();
|
|
|
|
public DateTime OccurredOn => DateTime.Now;
|
|
|
|
public string Type { get => TypeProvider.GetTypeName(GetType()); }
|
|
}
|