diff --git a/src/Foundatio/Metrics/DiagnosticsMetricsClient.cs b/src/Foundatio/Metrics/DiagnosticsMetricsClient.cs index add1ddd0..eca7c425 100644 --- a/src/Foundatio/Metrics/DiagnosticsMetricsClient.cs +++ b/src/Foundatio/Metrics/DiagnosticsMetricsClient.cs @@ -1,6 +1,7 @@ using System; using System.Collections.Concurrent; using System.Diagnostics.Metrics; +#pragma warning disable 612, 618 namespace Foundatio.Metrics; @@ -57,3 +58,5 @@ public GaugeInfo(Meter meter, string name) public double Value { get; set; } } } + +#pragma warning restore 612, 618 diff --git a/src/Foundatio/Metrics/IMetricsClient.cs b/src/Foundatio/Metrics/IMetricsClient.cs index c36fec8b..7a192c31 100644 --- a/src/Foundatio/Metrics/IMetricsClient.cs +++ b/src/Foundatio/Metrics/IMetricsClient.cs @@ -1,4 +1,6 @@ -using System; +#pragma warning disable 612, 618 + +using System; using System.Threading.Tasks; using Foundatio.Utility; @@ -42,3 +44,5 @@ public static async Task TimeAsync(this IMetricsClient client, Func