Skip to content

Instantly share code, notes, and snippets.

@vietnt
Created January 29, 2012 18:53
Show Gist options
  • Save vietnt/1700125 to your computer and use it in GitHub Desktop.
Save vietnt/1700125 to your computer and use it in GitHub Desktop.
simple async wflow
.On<QuoteRequest, QuoteRequest>(m => m)
.Request<int>(
state => new PriceRequest
{
Id = state.Id
})
.Request<double>(
state => new DiscountRequest
{
Qty = state.Qty
})
.Merge(
(state, price, discount) => state.Qty*price*discount)
.Return();
@vietnt
Copy link
Author

vietnt commented Feb 2, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment