Custom attribute that, when applied on an aspect, causes the aspect to increment some metric at build time.
Namespace: PostSharp.Extensibility
Assembly: PostSharp.dll
Syntax
[AttributeUsage(AttributeTargets.Class, AllowMultiple = true)]
public class MetricAttribute : AttributeRemarks
These metrics are used by PostSharp to collect usage information and are transferred to the makers of PostSharp only if you opted in for the Customer Experience Improvement Program.
Constructors
| Name | Description |
|---|---|
| MetricAttribute(string, object) | Initializes a new MetricAttribute. |
Properties
| Name | Description |
|---|---|
| AllowImplementationMetrics | Determines whether the usage of features used by the target aspects must be instrumented. |
| MetricName | Gets the name of the metric. |
| Operand | Gets the operand of the metric. |