20 lines
685 B
C#
20 lines
685 B
C#
|
using Microsoft.eShopOnContainers.BuildingBlocks.EventBus.Events;
|
|||
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.Linq;
|
|||
|
using System.Threading.Tasks;
|
|||
|
|
|||
|
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 : IntegrationEvent
|
|||
|
{
|
|||
|
public string UserId { get; }
|
|||
|
|
|||
|
public OrderStartedIntegrationEvent(string userId) =>
|
|||
|
UserId = userId;
|
|||
|
}
|
|||
|
}
|