ITestSessionLifetimeHandler.OnTestSessionStartingAsync 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.
Overloads
| Name | Description |
|---|---|
| OnTestSessionStartingAsync(ITestSessionContext) |
Called when a test session is starting. |
| OnTestSessionStartingAsync(SessionUid, CancellationToken) |
Called when a test session is starting. |
OnTestSessionStartingAsync(ITestSessionContext)
Called when a test session is starting.
public System.Threading.Tasks.Task OnTestSessionStartingAsync(Microsoft.Testing.Platform.Services.ITestSessionContext testSessionContext);
abstract member OnTestSessionStartingAsync : Microsoft.Testing.Platform.Services.ITestSessionContext -> System.Threading.Tasks.Task
Public Function OnTestSessionStartingAsync (testSessionContext As ITestSessionContext) As Task
Parameters
- testSessionContext
- ITestSessionContext
A test session context containing the unique identifier of the session as well as cancellation token.
Returns
A task representing the asynchronous operation.
Applies to
OnTestSessionStartingAsync(SessionUid, CancellationToken)
Called when a test session is starting.
public System.Threading.Tasks.Task OnTestSessionStartingAsync(Microsoft.Testing.Platform.TestHost.SessionUid sessionUid, System.Threading.CancellationToken cancellationToken);
abstract member OnTestSessionStartingAsync : Microsoft.Testing.Platform.TestHost.SessionUid * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function OnTestSessionStartingAsync (sessionUid As SessionUid, cancellationToken As CancellationToken) As Task
Parameters
- sessionUid
- SessionUid
The unique identifier of the session.
- cancellationToken
- CancellationToken
The cancellation token.
Returns
A task representing the asynchronous operation.