Skip to content

Commit

Permalink
Merge pull request #1 from chinaboard/master
Browse files Browse the repository at this point in the history
  • Loading branch information
brumschlag committed Mar 7, 2016
2 parents 4022406 + 8d395d8 commit cbe6d8e
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion Src/Metrics/Core/HistogramMetric.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace Metrics.Core
{
public interface HistogramImplementation : Histogram, MetricValueProvider<HistogramValue> { }

public sealed class HistogramMetric : HistogramImplementation
public sealed class HistogramMetric : HistogramImplementation, IDisposable
{
private readonly Reservoir reservoir;
private UserValueWrapper last = new UserValueWrapper();
Expand Down Expand Up @@ -62,5 +62,13 @@ private static Reservoir SamplingTypeToReservoir(SamplingType samplingType)
}
throw new InvalidOperationException("Sampling type not implemented " + samplingType.ToString());
}

public void Dispose()
{
using (reservoir as IDisposable)
{

}
}
}
}

0 comments on commit cbe6d8e

Please sign in to comment.