Previously it was:
partial class Composition: ServiceProviderFactory<Composition>
{
private void Setup() => DI.Setup()
.DependsOn(Base)
.Roots<ControllerBase>()
.Bind().As(Singleton).To<ClockViewModel>()
.Bind().To<ClockModel>()
.Bind().As(Singleton).To<Ticks>()
// Infrastructure
.Bind().To<MicrosoftLoggerAdapter<TT>>()
.Bind().To<CurrentThreadDispatcher>();
}
Now it is:
partial class Composition: ServiceProviderFactory<Composition>
{
private void Setup() => DI.Setup()
.Roots<ControllerBase>()
.Bind().As(Singleton).To<ClockViewModel>()
.Bind().To<ClockModel>()
.Bind().As(Singleton).To<Ticks>()
// Infrastructure
.Bind().To<MicrosoftLoggerAdapter<TT>>()
.Bind().To<CurrentThreadDispatcher>();
}
Previously it was:
Now it is: