internal void Apply(NewProductAddedEvent @event) { Items.Add(@event.ProductBasketItem); }
public Task Handle(NewProductAddedEvent message, CancellationToken cancellationToken) { // Send some notification e-mail or do another thing return(Task.CompletedTask); }