You are designing an application by using Windows Presentation Foundation (WPF) and Microsoft .NET Framework 4.
The user interface (UI) tier of the application will be implemented in WPF.
The middle tier of the application is implemented by using an existing COM component.
The middle tier contains a long-running method named ProcessData.
You need to ensure that users can continue to use the UI while ProcessData is running.
What should you do?
A.
Use an asynchronous worker thread to call Process Data.
B.
Use the Invoke method of the Dispatcher class to call Process Data.
C.
Call the Run method of the Dispatcher class before invoking Process Data.
D.
Call the Do Events method of the Application class before invoking Process Data Correct