TaskExtensions.WrapInControlledTask method (1 of 2)

Returns a dummy controlled Task that wraps this uncontrolled Task.

public static Task WrapInControlledTask(this Task @this)

Remarks

The returned dummy controlled Task does not actually take control of the uncontrolled Task during systematic testing, so this method should only be used to cross an interface boundary where a controlled Task must be temporarily converted into an uncontrolled Task and then coverted back to a controlled Task.

See Also


TaskExtensions.WrapInControlledTask<TResult> method (2 of 2)

Returns a dummy controlled Task that wraps this uncontrolled Task.

public static Task<TResult> WrapInControlledTask<TResult>(this Task<TResult> @this)

Remarks

The returned dummy controlled Task does not actually take control of the uncontrolled Task during systematic testing, so this method should only be used to cross an interface boundary where a controlled Task must be temporarily converted into an uncontrolled Task and then coverted back to a controlled Task.

See Also