diff --git a/Src/Metrics/Core/HistogramMetric.cs b/Src/Metrics/Core/HistogramMetric.cs index a5d25a2c..3c434aa2 100644 --- a/Src/Metrics/Core/HistogramMetric.cs +++ b/Src/Metrics/Core/HistogramMetric.cs @@ -6,7 +6,7 @@ namespace Metrics.Core { public interface HistogramImplementation : Histogram, MetricValueProvider { } - public sealed class HistogramMetric : HistogramImplementation + public sealed class HistogramMetric : HistogramImplementation, IDisposable { private readonly Reservoir reservoir; private UserValueWrapper last = new UserValueWrapper(); @@ -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) + { + + } + } } }