Table of Contents

Method WithMaxDuplicateGroups

Namespace
QueryGuard
Assembly
QueryGuard.Core.dll

WithMaxDuplicateGroups(int, QueryGuardSeverity)

Limits how many fingerprints may reach RepeatedQueryThreshold.

public QueryGuardPolicy WithMaxDuplicateGroups(int maxGroups, QueryGuardSeverity severity = QueryGuardSeverity.Failure)

Parameters

maxGroups int

The inclusive maximum number of repeated groups.

severity QueryGuardSeverity

How to react when the limit is exceeded.

Returns

QueryGuardPolicy

A new policy.

Exceptions

ArgumentOutOfRangeException

maxGroups is negative.