Skip to content

Instantly share code, notes, and snippets.

@tomliversidge
Created June 24, 2017 13:47
Show Gist options
  • Save tomliversidge/65a72158519eb2ad31a836d5c0ecf6e3 to your computer and use it in GitHub Desktop.
Save tomliversidge/65a72158519eb2ad31a836d5c0ecf6e3 to your computer and use it in GitHub Desktop.
Saga 3.6
private Task AwaitingDebitConfirmation(IContext context)
{
switch (context.Message)
{
case OK _:
await _persistence.PersistEventAsync(new AccountDebited());
context.SpawnNamed(TryCredit(_to, +_amount), "CreditAttempt");
break;
//...
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment