Guard.IsCompletedSuccessfully(Task, String) Method

Definition

Asserts that the input Task instance has been completed successfully.

public static void IsCompletedSuccessfully (System.Threading.Tasks.Task task, string name);
static member IsCompletedSuccessfully : System.Threading.Tasks.Task * string -> unit
Public Shared Sub IsCompletedSuccessfully (task As Task, name As String)

Parameters

task
Task

The input Task instance to test.

name
String

The name of the input parameter being tested.

Exceptions

Thrown if task has not been completed successfully.

Applies to