Class ContextBase
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.
public ContextBase(ExplicitOption explicitOption, IMessageBus messageBus, ExceptionAggregator aggregator, CancellationTokenSource cancellationTokenSource)
Parameters
explicitOptionExplicitOptionThe user's choice on how to treat explicit tests
messageBusIMessageBusThe message bus to send execution messages to
aggregatorExceptionAggregatorThe exception aggregator
cancellationTokenSourceCancellationTokenSourceThe cancellation token source
Properties
Aggregator
Gets the aggregator used for reporting exceptions.
public ExceptionAggregator Aggregator { get; }
Property Value
CancellationTokenSource
Gets the cancellation token source used for cancelling test execution.
public CancellationTokenSource CancellationTokenSource { get; }
Property Value
ExplicitOption
Gets a flag which indicates how explicit tests should be handled.
public ExplicitOption ExplicitOption { get; }
Property Value
MessageBus
Gets the message bus to send execution engine messages to.
public IMessageBus MessageBus { get; }
Property Value
Methods
DisposeAsync()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources asynchronously.
public virtual ValueTask DisposeAsync()
Returns
InitializeAsync()
Called immediately after the class has been created, before it is used.
public virtual ValueTask InitializeAsync()