Skip to content

Unify configuration under AddTrax with step builder pattern#15

Merged
Theauxm merged 1 commit into
mainfrom
refactor/unified-builder-api
Mar 6, 2026
Merged

Unify configuration under AddTrax with step builder pattern#15
Theauxm merged 1 commit into
mainfrom
refactor/unified-builder-api

Conversation

@Theauxm
Copy link
Copy Markdown
Member

@Theauxm Theauxm commented Mar 6, 2026

Summary

  • Replace AddTraxEffects() with unified services.AddTrax(trax => trax.AddEffects(...).AddMediator(...).AddScheduler(...)) entry point
  • Introduce step builder types (TraxBuilderWithEffects, TraxBuilderWithMediator) that enforce configuration ordering at compile time
  • Register TraxMarker singleton for runtime validation by AddTraxDashboard() and AddTraxGraphQL()
  • Rename TraxEffectConfigurationBuilder to TraxEffectBuilder for consistency

Test plan

  • All 160 Effect tests pass
  • Downstream repos (Mediator, Scheduler, Dashboard, Samples) build and pass tests
  • CSharpier formatting applied

Replace AddTraxEffects() with a unified services.AddTrax(trax => trax.AddEffects(...).AddMediator(...).AddScheduler(...)) entry point.

Introduce step builder types (TraxBuilderWithEffects, TraxBuilderWithMediator) that enforce configuration ordering at compile time — effects must be configured before mediator, mediator before scheduler.

Register TraxMarker singleton for runtime validation by AddTraxDashboard() and AddTraxGraphQL().
@Theauxm Theauxm force-pushed the refactor/unified-builder-api branch from a84f676 to f2cada0 Compare March 6, 2026 06:09
@Theauxm Theauxm merged commit 83c19c7 into main Mar 6, 2026
1 check passed
@traxsharp
Copy link
Copy Markdown

traxsharp Bot commented Mar 6, 2026

This PR is included in version 1.7.0

@Theauxm Theauxm deleted the refactor/unified-builder-api branch March 6, 2026 19:04
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