Class DefaultCounterMetricProvider
Inheritance
System.Object
DefaultCounterMetricProvider
Namespace:App.Metrics.Counter
Assembly:cs.temp.dll.dll
Syntax
public class DefaultCounterMetricProvider : IProvideCounterMetrics
Constructors
DefaultCounterMetricProvider(IBuildCounterMetrics, IMetricsRegistry)
Declaration
public DefaultCounterMetricProvider(IBuildCounterMetrics counterBuilder, IMetricsRegistry registry)
Parameters
| Type |
Name |
Description |
| IBuildCounterMetrics |
counterBuilder |
The counter builder.
|
| IMetricsRegistry |
registry |
The registry.
|
Methods
Instance(CounterOptions)
Declaration
public ICounter Instance(CounterOptions options)
Parameters
| Type |
Name |
Description |
| CounterOptions |
options |
|
Returns
| Type |
Description |
| ICounter |
|
Instance(CounterOptions, MetricTags)
Declaration
public ICounter Instance(CounterOptions options, MetricTags tags)
Parameters
| Type |
Name |
Description |
| CounterOptions |
options |
|
| MetricTags |
tags |
|
Returns
| Type |
Description |
| ICounter |
|
Instance<T>(CounterOptions, MetricTags, Func<T>)
Declaration
public ICounter Instance<T>(CounterOptions options, MetricTags tags, Func<T> builder)where T : ICounterMetric
Parameters
| Type |
Name |
Description |
| CounterOptions |
options |
|
| MetricTags |
tags |
|
| System.Func<T> |
builder |
|
Returns
| Type |
Description |
| ICounter |
|
Type Parameters
Instance<T>(CounterOptions, Func<T>)
Declaration
public ICounter Instance<T>(CounterOptions options, Func<T> builder)where T : ICounterMetric
Parameters
| Type |
Name |
Description |
| CounterOptions |
options |
|
| System.Func<T> |
builder |
|
Returns
| Type |
Description |
| ICounter |
|
Type Parameters