Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // method of your view model / application layer
- public void InteractiveProcessing()
- {
- // business logic is separated in smaller chunks
- model.DoFirstPartOfOperation();
- // check if model needs additional user input
- if(model.NeedsInput)
- // raise callback here, let user enter input etc...
- // continue processing with user input
- model.DoSecondPartOfOperation(userInput);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement