Advertisement
Guest User

Untitled

a guest
Oct 31st, 2014
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. // method of your view model / application layer
  2. public void InteractiveProcessing()
  3. {
  4. // business logic is separated in smaller chunks
  5. model.DoFirstPartOfOperation();
  6. // check if model needs additional user input
  7. if(model.NeedsInput)
  8. // raise callback here, let user enter input etc...
  9. // continue processing with user input
  10. model.DoSecondPartOfOperation(userInput);
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement