共用方式為


MetricsBuilderExtensions Class

Definition

Extension methods for IMetricsBuilder to add or clear IMetricsListener registrations, and to enable or disable metrics.

public ref class MetricsBuilderExtensions abstract sealed
public static class MetricsBuilderExtensions
type MetricsBuilderExtensions = class
Public Module MetricsBuilderExtensions
Inheritance
MetricsBuilderExtensions

Methods

AddListener(IMetricsBuilder, IMetricsListener)

Registers a new IMetricsListener instance.

AddListener<T>(IMetricsBuilder)

Registers a new IMetricsListener of type T.

ClearListeners(IMetricsBuilder)

Removes all IMetricsListener registrations from the dependency injection container.

DisableMetrics(IMetricsBuilder, String, String, String, MeterScope)

Disables a specified Instrument for the given Meter and IMetricsListener.

DisableMetrics(IMetricsBuilder, String)

Disables all Instrument's for the given meter, for all registered IMetricsListener's.

DisableMetrics(MetricsOptions, String, String, String, MeterScope)

Disables a specified Instrument for the given Meter and IMetricsListener.

DisableMetrics(MetricsOptions, String)

Disables all Instrument's for the given meter, for all registered IMetricsListener's.

EnableMetrics(IMetricsBuilder, String, String, String, MeterScope)

Enables a specified Instrument for the given Meter and IMetricsListener.

EnableMetrics(IMetricsBuilder, String)

Enables all Instrument's for the given meter, for all registered IMetricsListener's.

EnableMetrics(MetricsOptions, String, String, String, MeterScope)

Enables a specified Instrument for the given Meter and IMetricsListener.

EnableMetrics(MetricsOptions, String)

Enables all Instrument's for the given meter, for all registered IMetricsListener's.

Applies to