Class Meter<T>

Namespace
Cratis.Metrics
Assembly
Cratis.Fundamentals.dll

Represents a typed Meter.

public class Meter<T> : IMeter<T>

Type Parameters

T

Type the meter is for.

Inheritance
Meter<T>
Implements
Inherited Members
Extension Methods

Remarks

Initializes a new instance of the Meter<T> class.

Constructors

Meter()

Initializes a new instance of the Meter<T> class.

public Meter()

Meter(Meter)

Initializes a new instance of the Meter<T> class.

public Meter(Meter meter)

Parameters

meter Meter

The actual meter to use.

Meter(IServiceProvider, string?)

Initializes a new instance of the Meter<T> class.

[ActivatorUtilitiesConstructor]
public Meter(IServiceProvider serviceProvider, string? key = null)

Parameters

serviceProvider IServiceProvider

The IServiceProvider used for resolving keyed services.

key string

The key used when resolving the service.

Properties

ActualMeter

Gets the actual Meter instance.

public Meter ActualMeter { get; }

Property Value

Meter