ExecuteRequestContext Class
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.
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. |