Exemplo n.º 1
0
 public Task HandleAsync(OrderConfirmed @event)
 {
     return(Task.FromResult(0));
 }
Exemplo n.º 2
0
        /// <summary>
        /// Handle the event.
        /// </summary>
        /// <param name="event">The <see cref="IEvent"/> to handle.</param>
        public Task HandleAsync(PaymentAccepted @event)
        {
            OrderConfirmed orderConfirmed = new OrderConfirmed(this.Id);

            return(this.EventContext.Request.Processor.PublishAsync(orderConfirmed));
        }