Class ProtoResourceReleaseContext
Provides everything a resource needs while it is being released.
public sealed class ProtoResourceReleaseContext
- Inheritance
-
ProtoResourceReleaseContext
- Inherited Members
- Extension Methods
Properties
CancellationToken
Gets the cancellation token for the release.
public CancellationToken CancellationToken { get; }
Property Value
Phase
Gets the phase the release belongs to, so nested operations are labelled correctly.
public ProtoTracePhase Phase { get; }
Property Value
Test
Gets the execution context of the test that owns the resource, or null for a run-scoped resource, which no single test owns.
public ProtoExecutionContext? Test { get; }
Property Value
Trace
Gets the trace writer so a release can record its own operations and observations.
public IProtoTraceWriter Trace { get; }