ExecuteRequestContext Class

Definition

This class represents the context that is passed to a test framework adapter when the ExecuteRequestAsync(ExecuteRequestContext) method is called.

public sealed class ExecuteRequestContext
type ExecuteRequestContext = class
Public NotInheritable Class ExecuteRequestContext
Inheritance
ExecuteRequestContext

Remarks

It contains information about the request, message bus, semaphore, and cancellation token.

Constructors

Name Description
ExecuteRequestContext(IRequest, IMessageBus, IExecuteRequestCompletionNotifier, CancellationToken)

Initializes a new instance of the ExecuteRequestContext class.

Properties

Name Description
CancellationToken

Gets the cancellation token that can be used to cancel the execution.

MessageBus

Gets the message bus used for reporting test execution events.

Request

Gets the request associated with the execution.

Methods

Name Description
Complete()

Completes the execution request.

Applies to