Skip to content

Instantly share code, notes, and snippets.

@tomliversidge
Created June 24, 2017 13:47
Show Gist options
  • Save tomliversidge/d2de47f80d3efbe513f9678ccf6551ea to your computer and use it in GitHub Desktop.
Save tomliversidge/d2de47f80d3efbe513f9678ccf6551ea to your computer and use it in GitHub Desktop.
Saga 3.7
private async Task AwaitingCreditConfirmation(IContext context)
{
switch (context.Message)
{
case Started _:
context.SpawnNamed(TryCredit(_to, +_amount), "CreditAttempt");
break;
//..... other code omitted
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment