Skip to content

Instantly share code, notes, and snippets.

@tomliversidge
Created June 24, 2017 13:37
Show Gist options
  • Save tomliversidge/d77f4849d10557f12cea57046e1ef56f to your computer and use it in GitHub Desktop.
Save tomliversidge/d77f4849d10557f12cea57046e1ef56f to your computer and use it in GitHub Desktop.
Saga 2.14
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