Interface IProtoTargetBuilder

Namespace
ProtoTest.Core
Assembly
ProtoTest.Core.dll

Configures observation collection for a named target.

public interface IProtoTargetBuilder
Extension Methods

Properties

Services

Gets the service collection used to register target services.

IServiceCollection Services { get; }

Property Value

IServiceCollection

TargetName

Gets the target name used to match observations.

string TargetName { get; }

Property Value

string

Methods

AddCollector<TCollector>(params object[])

Registers an observation collector. The collector must expose a constructor accepting the target name, any additionalArguments, and optionally services resolvable from DI.

IProtoTargetBuilder AddCollector<TCollector>(params object[] additionalArguments) where TCollector : class, IProtoCollector

Parameters

additionalArguments object[]

Returns

IProtoTargetBuilder

Type Parameters

TCollector