Skip to content

Instantly share code, notes, and snippets.

@mattbarrett
Created April 15, 2014 14:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mattbarrett/10736594 to your computer and use it in GitHub Desktop.
Save mattbarrett/10736594 to your computer and use it in GitHub Desktop.
Asynchrony as a service
private void ExecuteAsync(long notional)
{
_executablePrice.ExecuteRequest(notional, _parent.DealtCurrency)
.ObserveOn(_concurrencyService.Dispatcher)
.SubscribeOn(_concurrencyService.ThreadPool)
.Subscribe(OnExecutedResult, OnExecutionError);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment