コード例 #1
0
        public async Task Handle(VerifyComplete message)
        {
            Logger.Warning("The saga for case {CaseNumber} was not completed within {TimeoutSeconds} s timeout", Data.CaseNumber, 20);

            await _bus.Publish(new PayoutNotReady(Data.CaseNumber));

            MarkAsComplete();
        }
コード例 #2
0
        public async Task Handle(VerifyComplete message)
        {
            Logger.Warning("The saga for order {ID} was not completed within {TimeoutSeconds} s timeout", Data.requestID, 20);

            //timeout occured, initiate rollback
            await _bus.Publish(new OrderFailedEvent(Data.requestID));

            await RollBack(true);

            //should probably be moved to rollback or paymentrefunded event logic.
            MarkAsComplete();
        }