Skip to content

Commit 332f49a

Browse files
author
Dean Ward
committed
Make some props public and methods virtual to make extensibility better
1 parent 133fec0 commit 332f49a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/StackExchange.Metrics/MetricSource.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ public MetricSource(MetricSourceOptions options)
2727

2828
/// <summary>
2929
/// Gets <see cref="MetricSourceOptions"/> that should be used when creating metrics in this source.
30-
/// </summary>
31-
protected MetricSourceOptions Options { get; }
30+
/// </summary>
31+
public MetricSourceOptions Options { get; }
3232

3333
/// <summary>
3434
/// Called when an <see cref="IMetricsCollector"/> is starting in order to attach
@@ -94,7 +94,7 @@ public IEnumerable<Metadata> GetMetadata()
9494
/// <param name="metric">
9595
/// Instance of a metric.
9696
/// </param>
97-
public TMetric Add<TMetric>(TMetric metric) where TMetric : MetricBase
97+
public virtual TMetric Add<TMetric>(TMetric metric) where TMetric : MetricBase
9898
{
9999
lock (_syncLock)
100100
{
@@ -115,7 +115,7 @@ public TMetric Add<TMetric>(TMetric metric) where TMetric : MetricBase
115115
/// <param name="metric">
116116
/// Instance of a metric.
117117
/// </param>
118-
public TTaggedMetric Add<TTaggedMetric, TMetric>(TTaggedMetric metric) where TTaggedMetric : TaggedMetricFactory<TMetric> where TMetric : MetricBase
118+
public virtual TTaggedMetric Add<TTaggedMetric, TMetric>(TTaggedMetric metric) where TTaggedMetric : TaggedMetricFactory<TMetric> where TMetric : MetricBase
119119
{
120120
lock (_syncLock)
121121
{

0 commit comments

Comments
 (0)