Example #1
0
        private IEnumerable StartedBy(OrderPlaced e)
        {
            yield return(new RequestPayment(e.OrderId)
                         .AndSignalTimeout()
                         .ToSelf()
                         .After(TimeSpan.FromHours(1)));

            yield return(new SendPurchaseConfirmation(e.OrderId));
        }
Example #2
0
        private IEnumerable On(OrderPlaced e)
        {
            yield return(new RequestPayment(e.OrderId));

            yield return(new SendPurchaseConfirmation(e.OrderId));
        }