Click or drag to resize

MetricsExtensionsToAppMetricsCounter Method

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

Namespace:  Dse
Assembly:  Dse.AppMetrics (in Dse.AppMetrics.dll) Version: 1.0.0
Syntax
C#
public static IAppMetricsCounter ToAppMetricsCounter(
	this IDriverCounter counter
)

Parameters

counter
Type: Dse.Metrics.AbstractionsIDriverCounter

Return Value

Type: IAppMetricsCounter

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IDriverCounter. 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 counter was not created by the AppMetrics provider (CreateDriverMetricsProvider(IMetricsRoot)).
See Also