Created
June 24, 2017 13:42
-
-
Save tomliversidge/df8ac250c4b96a1632de73815c697c3c to your computer and use it in GitHub Desktop.
Saga 3.1
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 Task Starting(IContext context) | |
| { | |
| if (context.Message is Started) | |
| { | |
| context.SpawnNamed(TryDebit(_from, -_amount), "DebitAttempt"); | |
| _behavior.Become(AwaitingDebitConfirmation); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment