Skip to content

AUS-1015: Release 2.0.0-preview.3: strong-named assemblies and the error-handler change - #174

Merged
Astn merged 2 commits into
masterfrom
aus-1015-preview3
Sep 28, 2026
Merged

Astn merged 2 commits into
masterfrom
aus-1015-preview3

Conversation

@Astn

@Astn Astn commented Sep 28, 2026

Copy link
Copy Markdown
Owner

Release 2.0.0-preview.3 with the two incompatible changes adopted by the API usability review (Linear AUS-1015, decisions 1 and 2 of #173). Merging publishes the four packages through the master workflow.

Strong-named assemblies. AustinHarris.JsonRpc.snk at the repository root signs the four packages and the two friend assemblies (the test project and the Micro benchmark); the InternalsVisibleTo entries name its public key. Public key token e6819c02cf4aec44. The key stays the same from here on, since changing it changes the assembly identity. Checked: a strong-named consumer with TreatWarningsAsErrors referencing the preview.3 packages on netstandard2.0 and net10.0 builds with no CS8002.

The error handler receives the thrown exception. MapException used to replace an exception that had an InnerException with that inner exception and to promote an inner JsonRpcException, so a handler saw the cause instead of the error and an authored outer error lost its message. Now UnwrapInvocation strips only a TargetInvocationException and a single-inner AggregateException, on the synchronous and asynchronous paths alike (the async-only unwrap and mapper are folded into it), and BindingFailure follows the same rule. ErrorHandlerExceptionTests covers both paths: outer exception with its cause, inner JsonRpcException not promoted, authored exception as thrown, reflection and aggregate wrappers stripped, several-inner aggregate kept whole, and the wire with details on. One existing test that encoded the old substitution now expects the three-level chain.

Also: version bump to preview.3 in the four projects with release notes, CHANGELOG entries, README (version, signing note, the unwrapping rule in Errors).

Tests: 1234 passed on net8.0 and on net10.0.

…hrown exception

Release 2.0.0-preview.3. One key, AustinHarris.JsonRpc.snk at the repository root, signs the four packages and the two friend assemblies (the test project and the Micro benchmark); the InternalsVisibleTo entries carry its public key. Public key token e6819c02cf4aec44.

MapException no longer replaces an exception that has an InnerException with that inner exception, and no longer promotes an inner JsonRpcException. UnwrapInvocation strips only a TargetInvocationException and a single-inner AggregateException, on the synchronous and asynchronous paths alike; BindingFailure follows the same rule. The async-only unwrap and mapper are folded into it.
@Astn
Astn merged commit 4fd96dd into master Sep 28, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant