<PackageReference Include="Polly.Core" Version="8.0.0" />

TimeoutUtil

static class TimeoutUtil
using System; using System.Runtime.CompilerServices; namespace Polly.Timeout { internal static class TimeoutUtil { [System.Runtime.CompilerServices.Nullable(1)] public const string TimeSpanInvalidMessage = "The '{0}' must be a positive TimeSpan (or Timeout.InfiniteTimeSpan to indicate no timeout)."; public static bool ShouldApplyTimeout(TimeSpan timeout) { return timeout > TimeSpan.Zero; } } }