Exam 070-483 Topic 8 Question 59 Discussion

Actual exam question for Microsoft's 070-483 exam
Question #: 59
Topic #: 8
You are implementing a method named ProcessReports that performs a long-running task. The ProcessReports() method has the following method signature:
public void ProcessReports(List<decimal> values,CancellationTokenSource cts, CancellationToken ct)
If the calling code requests cancellation, the method must perform the following actions:
- Cancel the long-running task.
- Set the task status to TaskStatus.Canceled.
You need to ensure that the ProcessReports() method performs the required actions. Which code segment should you use in the method body?

Suggested Answer: D Vote an answer

by Truda at Nov 16, 2023, 07:48 PM

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Nick name: Submit Cancel
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

0
0
0
10