ITestSessionLifetimeHandler.OnTestSessionStartingAsync Method

Definition

Overloads

Name Description
OnTestSessionStartingAsync(ITestSessionContext)

Called when a test session is starting.

OnTestSessionStartingAsync(SessionUid, CancellationToken)

Called when a test session is starting.

OnTestSessionStartingAsync(ITestSessionContext)

Source:
ITestSessionLifetimeHandler.cs
Source:
ITestSessionLifetimeHandler.cs
Source:
ITestSessionLifetimeHandler.cs
Source:
ITestSessionLifetimeHandler.cs

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)

Source:
ITestSessionLifetimeHandler.cs
Source:
ITestSessionLifetimeHandler.cs
Source:
ITestSessionLifetimeHandler.cs
Source:
ITestSessionLifetimeHandler.cs
Source:
ITestSessionLifetimeHandler.cs
Source:
ITestSessionLifetimeHandler.cs
Source:
ITestSessionLifetimeHandler.cs
Source:
ITestSessionLifetimeHandler.cs
Source:
ITestSessionLifetimeHandler.cs
Source:
ITestSessionLifetimeHandler.cs

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.

Applies to