Skip to content

Instantly share code, notes, and snippets.

@rarous
Created February 12, 2013 10:13
Show Gist options
  • Select an option

  • Save rarous/4761372 to your computer and use it in GitHub Desktop.

Select an option

Save rarous/4761372 to your computer and use it in GitHub Desktop.
public void Consume(ConnectorRequest message)
{
var context = ProcessMessageContext.Create();
var request = ProcessRequest(message, context);
var timeout = BusinessTimeout(message.Timeout, context);
Observable.Amb(request, timeout).Subscribe(SendResponse(message));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment