Class CounterExtensions
Inheritance
System.Object
CounterExtensions
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace:App.Metrics.Counter
Assembly:cs.temp.dll.dll
Syntax
public static class CounterExtensions
Methods
GetCounterValue(IProvideMetricValues, String, String)
Declaration
public static CounterValue GetCounterValue(this IProvideMetricValues valueService, string context, string metricName)
Parameters
| Type | Name | Description |
|---|---|---|
| IProvideMetricValues | valueService | |
| System.String | context | |
| System.String | metricName |
Returns
| Type | Description |
|---|---|
| CounterValue |
GetCounterValue(IProvideMetricValues, String, String, MetricTags)
Declaration
public static CounterValue GetCounterValue(this IProvideMetricValues valueService, string context, string metricName, MetricTags tags)
Parameters
| Type | Name | Description |
|---|---|---|
| IProvideMetricValues | valueService | |
| System.String | context | |
| System.String | metricName | |
| MetricTags | tags |
Returns
| Type | Description |
|---|---|
| CounterValue |
GetValueOrDefault(ICounter)
Declaration
public static CounterValue GetValueOrDefault(this ICounter metric)
Parameters
| Type | Name | Description |
|---|---|---|
| ICounter | metric |
Returns
| Type | Description |
|---|---|
| CounterValue |