|
@ -8,7 +8,7 @@ namespace Microsoft.eShopOnContainers.Services.Basket.API.IntegrationEvents.Even |
|
|
// Integration Events notes:
|
|
|
// Integration Events notes:
|
|
|
// An Event is “something that has happened in the past”, therefore its name has to be
|
|
|
// 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.
|
|
|
// An Integration Event is an event that can cause side effects to other microsrvices, Bounded-Contexts or external systems.
|
|
|
public class ProductPriceChangedEvent : IntegrationEvent |
|
|
|
|
|
|
|
|
public class ProductPriceChangedIntegrationEvent : IntegrationEvent |
|
|
{ |
|
|
{ |
|
|
public int ProductId { get; private set; } |
|
|
public int ProductId { get; private set; } |
|
|
|
|
|
|
|
@ -16,7 +16,7 @@ namespace Microsoft.eShopOnContainers.Services.Basket.API.IntegrationEvents.Even |
|
|
|
|
|
|
|
|
public decimal OldPrice { get; private set; } |
|
|
public decimal OldPrice { get; private set; } |
|
|
|
|
|
|
|
|
public ProductPriceChangedEvent(int productId, decimal newPrice, decimal oldPrice) |
|
|
|
|
|
|
|
|
public ProductPriceChangedIntegrationEvent(int productId, decimal newPrice, decimal oldPrice) |
|
|
{ |
|
|
{ |
|
|
ProductId = productId; |
|
|
ProductId = productId; |
|
|
NewPrice = newPrice; |
|
|
NewPrice = newPrice; |