WPF - interrupt a task and continue afterwards

violajaipur

New Member
I am building an ASP.NET application using WPF with a long-running asynchronous Task that, in some cases, needs to ask the user for some more info. Is there a way I could interrupt, but not cancel, the task, wait for the user to respond and continue based on the result?All I have found are ways to use callbacks before and after the task. I have tried invoking UI thread methods via Send() of a SynchronizationContext passed from the main thread, but it (sometimes) throws Null Reference Exception.Thanks for any ideas.
 
Back
Top