ITestSessionLifetimeHandler.OnTestSessionFinishingAsync Method

Definition

Overloads

Name Description
OnTestSessionFinishingAsync(ITestSessionContext)

Called when a test session is finishing.

OnTestSessionFinishingAsync(SessionUid, CancellationToken)

Called when a test session is finishing.

OnTestSessionFinishingAsync(ITestSessionContext)

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

Called when a test session is finishing.

public System.Threading.Tasks.Task OnTestSessionFinishingAsync(Microsoft.Testing.Platform.Services.ITestSessionContext testSessionContext);
abstract member OnTestSessionFinishingAsync : Microsoft.Testing.Platform.Services.ITestSessionContext -> System.Threading.Tasks.Task
Public Function OnTestSessionFinishingAsync (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

OnTestSessionFinishingAsync(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 finishing.

public System.Threading.Tasks.Task OnTestSessionFinishingAsync(Microsoft.Testing.Platform.TestHost.SessionUid sessionUid, System.Threading.CancellationToken cancellationToken);
abstract member OnTestSessionFinishingAsync : Microsoft.Testing.Platform.TestHost.SessionUid * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function OnTestSessionFinishingAsync (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