11using System ;
2- #if NET6_0_OR_GREATER
2+ #if HAS_ITUPLE
33using System . Runtime . CompilerServices ;
44#endif
55
@@ -108,7 +108,7 @@ public static void Set(this IMetricFamily<IGauge> metricFamily, double value, Da
108108 }
109109
110110 public static void Inc < TLabels > ( this IMetricFamily < IGauge , TLabels > metricFamily , double increment = 1 )
111- #if NET6_0_OR_GREATER
111+ #if HAS_ITUPLE
112112 where TLabels : struct , ITuple , IEquatable < TLabels>
113113#else
114114 where TLabels : struct , IEquatable < TLabels>
@@ -118,7 +118,7 @@ public static void Inc<TLabels>(this IMetricFamily<IGauge, TLabels> metricFamily
118118 }
119119
120120 public static void Inc < TLabels > ( this IMetricFamily < IGauge , TLabels > metricFamily , double increment , long timestamp )
121- #if NET6_0_OR_GREATER
121+ #if HAS_ITUPLE
122122 where TLabels : struct , ITuple , IEquatable < TLabels>
123123#else
124124 where TLabels : struct , IEquatable < TLabels>
@@ -128,7 +128,7 @@ public static void Inc<TLabels>(this IMetricFamily<IGauge, TLabels> metricFamily
128128 }
129129
130130 public static void Inc < TLabels > ( this IMetricFamily < IGauge , TLabels > metricFamily , double increment , DateTimeOffset timestamp )
131- #if NET6_0_OR_GREATER
131+ #if HAS_ITUPLE
132132 where TLabels : struct , ITuple , IEquatable < TLabels>
133133#else
134134 where TLabels : struct , IEquatable < TLabels>
@@ -138,7 +138,7 @@ public static void Inc<TLabels>(this IMetricFamily<IGauge, TLabels> metricFamily
138138 }
139139
140140 public static void IncTo < TLabels > ( this IMetricFamily < IGauge , TLabels > metricFamily , double value )
141- #if NET6_0_OR_GREATER
141+ #if HAS_ITUPLE
142142 where TLabels : struct , ITuple , IEquatable < TLabels>
143143#else
144144 where TLabels : struct , IEquatable < TLabels>
@@ -148,7 +148,7 @@ public static void IncTo<TLabels>(this IMetricFamily<IGauge, TLabels> metricFami
148148 }
149149
150150 public static void IncTo < TLabels > ( this IMetricFamily < IGauge , TLabels > metricFamily , double value , long timestamp )
151- #if NET6_0_OR_GREATER
151+ #if HAS_ITUPLE
152152 where TLabels : struct , ITuple , IEquatable < TLabels>
153153#else
154154 where TLabels : struct , IEquatable < TLabels>
@@ -158,7 +158,7 @@ public static void IncTo<TLabels>(this IMetricFamily<IGauge, TLabels> metricFami
158158 }
159159
160160 public static void IncTo < TLabels > ( this IMetricFamily < IGauge , TLabels > metricFamily , double value , DateTimeOffset timestamp )
161- #if NET6_0_OR_GREATER
161+ #if HAS_ITUPLE
162162 where TLabels : struct , ITuple , IEquatable < TLabels>
163163#else
164164 where TLabels : struct , IEquatable < TLabels>
@@ -168,7 +168,7 @@ public static void IncTo<TLabels>(this IMetricFamily<IGauge, TLabels> metricFami
168168 }
169169
170170 public static void Dec < TLabels > ( this IMetricFamily < IGauge , TLabels > metricFamily , double decrement = 1 )
171- #if NET6_0_OR_GREATER
171+ #if HAS_ITUPLE
172172 where TLabels : struct , ITuple , IEquatable < TLabels>
173173#else
174174 where TLabels : struct , IEquatable < TLabels>
@@ -178,7 +178,7 @@ public static void Dec<TLabels>(this IMetricFamily<IGauge, TLabels> metricFamily
178178 }
179179
180180 public static void Dec < TLabels > ( this IMetricFamily < IGauge , TLabels > metricFamily , double decrement , long timestamp )
181- #if NET6_0_OR_GREATER
181+ #if HAS_ITUPLE
182182 where TLabels : struct , ITuple , IEquatable < TLabels>
183183#else
184184 where TLabels : struct , IEquatable < TLabels>
@@ -188,7 +188,7 @@ public static void Dec<TLabels>(this IMetricFamily<IGauge, TLabels> metricFamily
188188 }
189189
190190 public static void Dec < TLabels > ( this IMetricFamily < IGauge , TLabels > metricFamily , double decrement , DateTimeOffset timestamp )
191- #if NET6_0_OR_GREATER
191+ #if HAS_ITUPLE
192192 where TLabels : struct , ITuple , IEquatable < TLabels>
193193#else
194194 where TLabels : struct , IEquatable < TLabels>
@@ -198,7 +198,7 @@ public static void Dec<TLabels>(this IMetricFamily<IGauge, TLabels> metricFamily
198198 }
199199
200200 public static void DecTo < TLabels > ( this IMetricFamily < IGauge , TLabels > metricFamily , double value )
201- #if NET6_0_OR_GREATER
201+ #if HAS_ITUPLE
202202 where TLabels : struct , ITuple , IEquatable < TLabels>
203203#else
204204 where TLabels : struct , IEquatable < TLabels>
@@ -208,7 +208,7 @@ public static void DecTo<TLabels>(this IMetricFamily<IGauge, TLabels> metricFami
208208 }
209209
210210 public static void DecTo < TLabels > ( this IMetricFamily < IGauge , TLabels > metricFamily , double value , long timestamp )
211- #if NET6_0_OR_GREATER
211+ #if HAS_ITUPLE
212212 where TLabels : struct , ITuple , IEquatable < TLabels>
213213#else
214214 where TLabels : struct , IEquatable < TLabels>
@@ -218,7 +218,7 @@ public static void DecTo<TLabels>(this IMetricFamily<IGauge, TLabels> metricFami
218218 }
219219
220220 public static void DecTo < TLabels > ( this IMetricFamily < IGauge , TLabels > metricFamily , double value , DateTimeOffset timestamp )
221- #if NET6_0_OR_GREATER
221+ #if HAS_ITUPLE
222222 where TLabels : struct , ITuple , IEquatable < TLabels>
223223#else
224224 where TLabels : struct , IEquatable < TLabels>
@@ -228,7 +228,7 @@ public static void DecTo<TLabels>(this IMetricFamily<IGauge, TLabels> metricFami
228228 }
229229
230230 public static void Set < TLabels > ( this IMetricFamily < IGauge , TLabels > metricFamily , double value )
231- #if NET6_0_OR_GREATER
231+ #if HAS_ITUPLE
232232 where TLabels : struct , ITuple , IEquatable < TLabels>
233233#else
234234 where TLabels : struct , IEquatable < TLabels>
@@ -238,7 +238,7 @@ public static void Set<TLabels>(this IMetricFamily<IGauge, TLabels> metricFamily
238238 }
239239
240240 public static void Set < TLabels > ( this IMetricFamily < IGauge , TLabels > metricFamily , double value , long timestamp )
241- #if NET6_0_OR_GREATER
241+ #if HAS_ITUPLE
242242 where TLabels : struct , ITuple , IEquatable < TLabels>
243243#else
244244 where TLabels : struct , IEquatable < TLabels>
@@ -248,7 +248,7 @@ public static void Set<TLabels>(this IMetricFamily<IGauge, TLabels> metricFamily
248248 }
249249
250250 public static void Set < TLabels > ( this IMetricFamily < IGauge , TLabels > metricFamily , double value , DateTimeOffset timestamp )
251- #if NET6_0_OR_GREATER
251+ #if HAS_ITUPLE
252252 where TLabels : struct , ITuple , IEquatable < TLabels>
253253#else
254254 where TLabels : struct , IEquatable < TLabels>
0 commit comments