Click or drag to resize

MetricsExtensionsToAppMetricsTimer Method

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

Namespace:  Cassandra
Assembly:  Cassandra.AppMetrics (in Cassandra.AppMetrics.dll) Version: 1.0.0
Syntax
C#
public static IAppMetricsTimer ToAppMetricsTimer(
	this IDriverTimer timer
)

Parameters

timer
Type: Cassandra.Metrics.AbstractionsIDriverTimer

Return Value

Type: IAppMetricsTimer

Usage Note

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