Method WithMaxOccurrencesPerFingerprint
- Namespace
- QueryGuard
- Assembly
- QueryGuard.Core.dll
WithMaxOccurrencesPerFingerprint(int, QueryGuardSeverity)
Limits how many times any single fingerprint may occur.
public QueryGuardPolicy WithMaxOccurrencesPerFingerprint(int maxOccurrences, QueryGuardSeverity severity = QueryGuardSeverity.Failure)
Parameters
maxOccurrencesintThe inclusive maximum per fingerprint.
severityQueryGuardSeverityHow to react when the limit is exceeded.
Returns
- QueryGuardPolicy
A new policy.
Exceptions
- ArgumentOutOfRangeException
maxOccurrencesis less than one.