Skip to content

Instantly share code, notes, and snippets.

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