Method Create
- Namespace
- QueryGuard
- Assembly
- QueryGuard.Core.dll
Create(string?, QueryCommandKind)
Creates a fingerprint for a command.
public QueryFingerprint Create(string? commandText, QueryCommandKind kind)
Parameters
commandTextstringThe command text as the provider produced it.
kindQueryCommandKindThe kind of command.
Returns
- QueryFingerprint
A fingerprint whose identifier is stable across runs, processes, and frameworks.
Remarks
Normalize first, then redact. Normalization removes the provider noise that would otherwise split one logical query into several groups; redaction then removes the values, so no un-redacted text is ever hashed or retained. Doing it the other way round would leave the redactor's placeholders to be normalized, which is one indirection for no benefit.