ITestSessionLifetimeHandler.OnTestSessionFinishingAsync 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 |
|---|---|
| OnTestSessionFinishingAsync(ITestSessionContext) |
Called when a test session is finishing. |
| OnTestSessionFinishingAsync(SessionUid, CancellationToken) |
Called when a test session is finishing. |
OnTestSessionFinishingAsync(ITestSessionContext)
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)
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.