What should you do?

You use the Task.Run() method to launch a long-running data processing operation. The data processing operation often fails in times of heavy network congestion. If the data processing operation fails, a second operation must clean up any results of the first operation. You need to ensure that the second operation is invoked only if the data processing operation throws an unhandled exception.

What should you do?
A . Create a TaskCompletionSource<T> object and call the TrySetException() method of the object.
B . Create a task by calling the Task.ContinueWith() method.
C . Examine the Task.Status property immediately after the call to the Task.Run() method.
D . Create a task inside the existing Task.Run() method by using the AttachedToParent option.

Answer: B

Latest 70-483 Dumps Valid Version with 288 Q&As

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments