Table of Contents

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

maxOccurrences int

The inclusive maximum per fingerprint.

severity QueryGuardSeverity

How to react when the limit is exceeded.

Returns

QueryGuardPolicy

A new policy.

Exceptions

ArgumentOutOfRangeException

maxOccurrences is less than one.