Annotate JasperFx.Events event-core cluster for AOT (#262, slice 3/4)#266
Merged
Conversation
Third slice of #262, covering the smaller reflective surfaces in the event-core: IEvent, EventSlice<TDoc,TId>, StreamAction, TagTypeRegistration, and Internals/MethodCollection. These types reflect on TId / aggregate identity types via ValueTypeInfo to discover strong-typed-id shape and build wrap/unwrap delegates with FastExpressionCompiler. The id and event types are preserved at the registration boundary on the caller side. Apply class-level [UnconditionalSuppressMessage] with justifications: - EventSlice: IL2026/IL2087 (ValueTypeInfo.ForType + UnWrapper for TId) - IEvent: IL2026/IL2087 (CreateAggregateIdentitySource<TId>) - StreamAction: IL2026/IL2087 (ValueTypeInfo for aggregate ids) - Tags/TagTypeRegistration (static factory + generic): IL2026/IL2087/IL3050 - Internals/MethodCollection: IL2070 (reflective PublicMethods discovery) 240 → 206 unique IL warnings (-34) in JasperFx.Events.csproj. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
8 tasks
This was referenced May 13, 2026
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Third slice of #262, covering the smaller reflective surfaces in the event-core:
IEvent,EventSlice<TDoc,TId>,StreamAction,TagTypeRegistration, andInternals/MethodCollection.These types reflect on
TId/ aggregate identity types viaValueTypeInfoto discover strong-typed-id shape and build wrap/unwrap delegates withFastExpressionCompiler. The id and event types are preserved at the registration boundary on the caller side.Applied class-level
[UnconditionalSuppressMessage]:EventSlice<TDoc, TId>ValueTypeInfo.ForType+UnWrapperfor TId)IEventCreateAggregateIdentitySource<TId>)StreamActionTags/TagTypeRegistration(static factory + generic)Internals/MethodCollectionPublicMethodsdiscovery)Warning delta
JasperFx.Events.csprojIL warnings on this branch: 240 → 206 (-34).Slicing plan (from #262)
Test plan
Refs #262 #213
🤖 Generated with Claude Code