Class MeterScope<T>
- Namespace
- Cratis.Metrics
- Assembly
- Cratis.Fundamentals.dll
Represents a scope for metrics.
public class MeterScope<T> : IMeterScope<T>, IDisposable
Type Parameters
TType the scope is for.
- Inheritance
-
MeterScope<T>
- Implements
-
IMeterScope<T>
- Inherited Members
- Extension Methods
Remarks
Initializes a new instance of the MeterScope<T> class.
Constructors
MeterScope(IMeter<T>, IDictionary<string, object>)
Represents a scope for metrics.
public MeterScope(IMeter<T> meter, IDictionary<string, object> tags)
Parameters
meterIMeter<T>The IMeter<T> the scope is for.
tagsIDictionary<string, object>Tags associated with the scope.
Remarks
Initializes a new instance of the MeterScope<T> class.
Properties
Meter
Gets the Meter associated with the scope.
public Meter Meter { get; }
Property Value
Tags
Gets the tags associated with the scope.
public IDictionary<string, object> Tags { get; }
Property Value
Methods
Dispose()
public void Dispose()