Created
June 24, 2017 13:37
-
-
Save tomliversidge/d77f4849d10557f12cea57046e1ef56f to your computer and use it in GitHub Desktop.
Saga 2.14
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| private async Task RollingBackDebit(IContext context) | |
| { | |
| switch (context.Message) | |
| { | |
| //... | |
| case OK _: | |
| _logger.Log("Transfer failed. System consistent") | |
| StopAll(context); | |
| break; | |
| case Refused _: | |
| case Terminated _: | |
| _logger.Log("Transfer status unknown. Escalate") | |
| StopAll(context); | |
| break; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment