Skip to content

Instantly share code, notes, and snippets.

@perokvist
Last active June 13, 2017 11:56
Show Gist options
  • Save perokvist/409f474559f44657e8d2cdf19a53b94d to your computer and use it in GitHub Desktop.
Save perokvist/409f474559f44657e8d2cdf19a53b94d to your computer and use it in GitHub Desktop.
ApplicationService util
await ApplicationService.ExecuteAsync( // (await response options 4.2 vs 4.3
eventStore,
command.AggregateId,
command.CorrelationId,
events => events.Rehydrate<AggregateState>(), //aggregate, fold, match
state => Aggregate.Handle(command, state),
log.AppendAsync,
locks,
timeoutHandler,
waitForLockRelease: false // 4.2 vs 4.3
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment