5 instantiations of TimeSpan
Microsoft.Extensions.Diagnostics.ResourceMonitoring (5)
ResourceMonitoringOptions.cs (3)
31
[
TimeSpan
(MinimumSamplingWindow, MaximumSamplingWindow)]
43
[
TimeSpan
(MinimumSamplingPeriod, MaximumSamplingPeriod)]
55
[
TimeSpan
(MinimumSamplingWindow, MaximumSamplingWindow)]
ResourceMonitoringOptions.Linux.cs (2)
25
[
TimeSpan
(MinimumCachingInterval, MaximumCachingInterval)]
38
[
TimeSpan
(MinimumCachingInterval, MaximumCachingInterval)]
6 references to TimeSpan
Microsoft.Extensions.Diagnostics.ResourceMonitoring (6)
src\Shared\Data.Validation\TimeSpanAttribute.cs (6)
62
/// Initializes a new instance of the <see cref="
TimeSpanAttribute
"/> class.
72
/// Initializes a new instance of the <see cref="
TimeSpanAttribute
"/> class.
83
/// Initializes a new instance of the <see cref="
TimeSpanAttribute
"/> class.
95
/// Initializes a new instance of the <see cref="
TimeSpanAttribute
"/> class.
121
throw new InvalidOperationException($"{nameof(
TimeSpanAttribute
)} requires that the minimum value be less than the maximum value (see field {validationContext.GetDisplayName()})");
158
throw new InvalidOperationException($"{nameof(
TimeSpanAttribute
)} can only be used with fields of type TimeSpan (see field {validationContext.GetDisplayName()})");