Class ContextBase
- Namespace
- Xunit.v3
- Assembly
- xunit.v3.core.dll
Base class for all execution pipeline context classes.
public class ContextBase : IAsyncLifetime, IAsyncDisposable
- Inheritance
-
ContextBase
- Implements
- Derived
- Inherited Members
Constructors
- ContextBase(ExplicitOption, IMessageBus, ExceptionAggregator, CancellationTokenSource)
Base class for all execution pipeline context classes.
Properties
- Aggregator
Gets the aggregator used for reporting exceptions.
- CancellationTokenSource
Gets the cancellation token source used for cancelling test execution.
- ExplicitOption
Gets a flag which indicates how explicit tests should be handled.
- MessageBus
Gets the message bus to send execution engine messages to.
Methods
- DisposeAsync()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources asynchronously.
- InitializeAsync()
Called immediately after the class has been created, before it is used.