Class ProtoResourceReleaseContext

Namespace
ProtoTest.Core
Assembly
ProtoTest.Core.dll

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

CancellationToken

Phase

Gets the phase the release belongs to, so nested operations are labelled correctly.

public ProtoTracePhase Phase { get; }

Property Value

ProtoTracePhase

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

ProtoExecutionContext

Trace

Gets the trace writer so a release can record its own operations and observations.

public IProtoTraceWriter Trace { get; }

Property Value

IProtoTraceWriter