Interface IProtoCollector

Namespace
ProtoTest.Core
Assembly
ProtoTest.Core.dll

Consumes observations during test execution. Reporting is optional and exposed separately through IProtoReportSource.

public interface IProtoCollector
Extension Methods

Methods

CanCollect(ProtoObservation)

Determines whether this collector accepts an observation.

bool CanCollect(ProtoObservation observation)

Parameters

observation ProtoObservation

Returns

bool

Collect(ProtoObservation)

Records an incoming observation. Implementations should support concurrent calls when tests or requests execute in parallel.

void Collect(ProtoObservation observation)

Parameters

observation ProtoObservation