ITestHostApplicationLifetime.AfterRunAsync(Int32, CancellationToken) Method

Definition

Executes after the test run.

public System.Threading.Tasks.Task AfterRunAsync(int exitCode, System.Threading.CancellationToken cancellation);
public System.Threading.Tasks.Task AfterRunAsync(int exitCode, System.Threading.CancellationToken cancellationToken);
abstract member AfterRunAsync : int * System.Threading.CancellationToken -> System.Threading.Tasks.Task
abstract member AfterRunAsync : int * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function AfterRunAsync (exitCode As Integer, cancellation As CancellationToken) As Task
Public Function AfterRunAsync (exitCode As Integer, cancellationToken As CancellationToken) As Task

Parameters

exitCode
Int32

The exit code of the test run.

cancellationcancellationToken
CancellationToken

The cancellation token.

Returns

A task representing the asynchronous operation.

Applies to