14 lines
520 B
C#
14 lines
520 B
C#
namespace Basket.API.IntegrationEvents.Events
|
|
{
|
|
// 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
|
|
{
|
|
public string UserId { get; set; }
|
|
|
|
public OrderStartedIntegrationEvent(string userId)
|
|
=> UserId = userId;
|
|
}
|
|
}
|