What should you do?

You need to update the DoWork() method of the background task to meet the requirements.
What should you do? (Each correct answer presents part of the solution. Choose all that apply.)
A. Get the IsCancellationRequested property from the CancellationToken object and return a TaskCompletionSource object.
B. Access the Progress object and report the task’s progress to the caller.
C. Update the DoWork() method to receive a Progress object.
D. Add the CancellationToken object to the client.GetAsync() method.
E. Confirm that the IsCancellationRequested property of the CancellationToken object is true and exit the task.
F. Update the DoWork() method to receive a CancellationToken object in the arguments of the method.

microsoft-exams

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.