MetricProvider<T> Class
The default implementation of IMetricProvider<T>.
Namespace: Metalama.Framework.Engine.Metrics
Assembly: Metalama.Framework.Sdk.dll
Syntax
public abstract class MetricProvider<T> : IMetricProvider<T>, IProjectService, IService where T : struct, IMetric
Type Parameters
Name | Description |
---|---|
T | The type of metric. |
Constructors
Name | Description |
---|---|
MetricProvider() |
Methods
Name | Description |
---|---|
Aggregate(ref T, in T) | Aggregates a new value into an aggregate value. |
ComputeMetricForMember(IMember) | Computes the metric for a member. |
ComputeMetricForType(INamedType) | Computes the metric for a whole type. |
GetMetric(IMeasurable) | Computes and returns the metric for a given object. |