ITestHostApplicationLifetime.BeforeRunAsync(CancellationToken) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Executes before the test run.
public System.Threading.Tasks.Task BeforeRunAsync(System.Threading.CancellationToken cancellationToken);
abstract member BeforeRunAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function BeforeRunAsync (cancellationToken As CancellationToken) As Task
Parameters
- cancellationToken
- CancellationToken
The cancellation token.
Returns
A task representing the asynchronous operation.