Method Complete
- Namespace
- QueryGuard
- Assembly
- QueryGuard.Core.dll
Complete()
Completes the session and returns an immutable snapshot of what it captured.
public CompletedQueryGuardSession Complete()
Returns
- CompletedQueryGuardSession
The completed session.
Remarks
Completion is idempotent: calling it again returns the same snapshot rather than throwing.
The middleware completes in a finally and a test scope completes on disposal, so a
double completion is a normal consequence of an exception unwinding two layers, not a
programming error worth failing a request over.