/// <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)); }
public Task HandleAsync(OrderConfirmed @event) { this.spy.Spy("OrderConfirmed"); return(Task.FromResult(0)); }