zeroframework/Services/DeviceCenter/ZeroFramework.DeviceCenter.Application/IntegrationEvents/Events/Ordering/OrderStartedIntegrationEvent.cs

12 lines
529 B
C#
Raw Normal View History

2023-12-05 09:22:48 +00:00
using ZeroFramework.EventBus.Events;
namespace ZeroFramework.DeviceCenter.Application.IntegrationEvents.Events.Ordering
{
// Integration Events notes:
// An Event is “something that has happened in the past”, therefore its name has to be
// An Integration Event is an event that can cause side effects to other microsrvices, Bounded-Contexts or external systems.
public class OrderStartedIntegrationEvent(Guid userId) : IntegrationEvent
{
public Guid UserId { get; set; } = userId;
}
}