Skip to content

Run before callbacks from the file level InnerVerifier constructor - #1903

Merged
SimonCropp merged 1 commit into
mainfrom
fix-file-verifier-before-callbacks
Aug 29, 2026
Merged

Run before callbacks from the file level InnerVerifier constructor#1903
SimonCropp merged 1 commit into
mainfrom
fix-file-verifier-before-callbacks

Conversation

@SimonCropp

Copy link
Copy Markdown
Member

Dispose calls RunAfterCallbacks unconditionally, and the primary constructor calls RunBeforeCallbacks, but the constructor used by third party clients to verify a file directly never did.

So an OnVerify(before, after) pair registered against those settings, or globally, had only its after half executed. Anything the pair sets and restores, such as a culture, ambient state or a counter, was left unbalanced.

Dispose calls RunAfterCallbacks unconditionally, and the primary constructor
calls RunBeforeCallbacks, but the constructor used by third party clients to
verify a file directly never did.

So an OnVerify(before, after) pair registered against those settings, or
globally, had only its after half executed. Anything the pair sets and restores,
such as a culture, ambient state or a counter, was left unbalanced.
@SimonCropp SimonCropp added this to the 33.0.0 milestone Aug 29, 2026
@SimonCropp
SimonCropp merged commit 09ce8d9 into main Aug 29, 2026
6 of 7 checks passed
@SimonCropp
SimonCropp deleted the fix-file-verifier-before-callbacks branch August 29, 2026 10:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant