Skip to content

Make composite projections play well with multi-tenancy#148

Merged
jeremydmiller merged 1 commit into
JasperFx:mainfrom
erdtsieck:main
Feb 6, 2026
Merged

Make composite projections play well with multi-tenancy#148
jeremydmiller merged 1 commit into
JasperFx:mainfrom
erdtsieck:main

Conversation

@erdtsieck
Copy link
Copy Markdown
Contributor

Add tenant-aware event wrapping and ensure TenantId is copied into the event envelope. Introduces Event.For(string tenantId, T data) and updates Updated.ToEvent and ProjectionDeleted.ToEvent to set the TenantId on the created Event so the tenant context is preserved when producing IEvent instances. Files changed: IEvent.cs, Updated.cs, Deleted.cs.

Add tenant-aware event wrapping and ensure TenantId is copied into the event envelope. Introduces Event.For<T>(string tenantId, T data) and updates Updated<T>.ToEvent and ProjectionDeleted.ToEvent to set the TenantId on the created Event<T> so the tenant context is preserved when producing IEvent instances. Files changed: IEvent.cs, Updated.cs, Deleted.cs.
@jeremydmiller jeremydmiller merged commit 522bb61 into JasperFx:main Feb 6, 2026
1 check 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.

2 participants