Skip to content

Allow switching the default IAggregator to be used when no explicit r…#497

Merged
jeremydmiller merged 1 commit into
JasperFx:masterfrom
jokokko:allowswitchingdefaultaggregator
Aug 23, 2016
Merged

Allow switching the default IAggregator to be used when no explicit r…#497
jeremydmiller merged 1 commit into
JasperFx:masterfrom
jokokko:allowswitchingdefaultaggregator

Conversation

@jokokko

@jokokko jokokko commented Aug 23, 2016

Copy link
Copy Markdown
Collaborator

…egistration exists.

Adds one signature to the public API, namely.
EventGraph.UseAggregatorLookup(IAggregatorLookup aggregatorLookup)

@jeremydmiller

Copy link
Copy Markdown
Member

Got it.

@jeremydmiller
jeremydmiller merged commit efdbfc5 into JasperFx:master Aug 23, 2016
jeremydmiller added a commit that referenced this pull request Jul 7, 2026
…asel.Storage (#4900)

* Bump JasperFx to 2.24.0 (cross-product rebuild cap, #497/#498)

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XNfeNz73Q3EdiTgSeDbo96

* Event-storage E2: consume Weasel 9.15.0 — descriptor core now lives in Weasel.Storage

Consumes Weasel 9.15.0 (weasel#341), which relocated the dialect-neutral event
descriptor core into the shared Weasel.Storage package so Marten and Polecat
(SQL Server) share it. Marten deletes its copies and adapts the Postgres
dialect to the neutral contracts.

Deleted from Marten (now in namespace Weasel.Storage):
- RichEventStorageDescriptor / QuickEventStorageDescriptor /
  QuickWithServerTimestampsEventStorageDescriptor
- IEventMetadataBinder + the 5 metadata binders (Sequence / Headers /
  Causation / Correlation / UserName)
- IEventStoreSqlDialect

Marten-side adaptation (PostgresEventStoreDialect):
- The three Build*Descriptor methods implement the neutral interface signatures
  (EventRegistry / IStorageSerializer) and downcast to EventGraph / ISerializer
  internally.
- The stream-command configurers stay Postgres-typed; a small Adapt() helper
  bridges them to the descriptors' neutral Action<Weasel.Core.ICommandBuilder,
  StreamAction> slots (the runtime builder is always the Postgres one).
- Quick / QuickWithServerTimestamps storage cast the descriptor factory's
  neutral Weasel.Storage.IStorageOperation back to Marten's IStorageOperation.

PostgresEventStoreDialect, the storage classes, and the operations stay in
Marten. README notes the move.

Validated (net10): EventSourcingTests 1432, TenantPartitionedEventsTests 228,
all green; full solution Debug + Release clean.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
jeremydmiller added a commit that referenced this pull request Jul 7, 2026
Claude-Session: https://claude.ai/code/session_01XNfeNz73Q3EdiTgSeDbo96

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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