Interface IProtoTargetBuilder
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
TargetName
Gets the target name used to match observations.
string TargetName { get; }
Property Value
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
additionalArgumentsobject[]
Returns
Type Parameters
TCollector