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

            return(this.EventContext.Request.Processor.PublishAsync(orderConfirmed));
        }
Ejemplo n.º 2
0
 public Task HandleAsync(OrderConfirmed @event)
 {
     this.spy.Spy("OrderConfirmed");
     return(Task.FromResult(0));
 }