Created
June 24, 2017 13:46
-
-
Save tomliversidge/5e331921a0ed193ba85d6c65ad2f1114 to your computer and use it in GitHub Desktop.
Saga 3.5
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
| public async Task ReceiveAsync(IContext context) | |
| { | |
| switch (context.Message) | |
| { | |
| case Started msg: | |
| _behavior.Become(Starting); | |
| await _persistence.RecoverStateAsync(); | |
| break; | |
| // ... | |
| } | |
| await _behavior.ReceiveAsync(context); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment