6 references to TimeSpanAttribute
Microsoft.Extensions.Compliance.Redaction (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()})");