DI Registration

Helper extension methods for registering Trax trains and junctions with the .NET dependency injection container. These methods wrap the standard AddScoped/AddTransient/AddSingleton registrations and add support for [Inject] property injection — a pattern used by ServiceTrain to inject services like IEffectRunner and ILogger.

Use these instead of raw DI registration when your train or junction class uses [Inject] properties.

> Train Registration | Junction Registration

services.AddTransientTraxRoute<IMyTrain, MyTrain>();
services.AddScopedTraxJunction<IMyJunction, MyJunction>();
PageDescription
Train RegistrationAddScoped/Transient/SingletonTraxRoute methods
Junction RegistrationAddScoped/Transient/SingletonTraxJunction methods