Click or drag to resize

MetricsExtensionsToAppMetricsGauge Method

Casts the provided gauge to the gauge implementation of this provider.

Namespace:  Dse
Assembly:  Dse.AppMetrics (in Dse.AppMetrics.dll) Version: 1.0.0
Syntax
C#
public static IAppMetricsGauge ToAppMetricsGauge(
	this IDriverGauge gauge
)

Parameters

gauge
Type: Dse.Metrics.AbstractionsIDriverGauge

Return Value

Type: IAppMetricsGauge

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IDriverGauge. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Exceptions
ExceptionCondition
ArgumentExceptionIf the gauge was not created by the AppMetrics provider (CreateDriverMetricsProvider(IMetricsRoot)).
See Also