Exemple #1
0
 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);
        }