The sample application (and most implementors) currently wire up services manually via a custom "activator" that constructs each dependency via a switch, rather than using .NET's standard, built-in dependency-injection container. This replaces that with idiomatic DI registration.
Tasks
The sample application (and most implementors) currently wire up services manually via a custom "activator" that constructs each dependency via a switch, rather than using .NET's standard, built-in dependency-injection container. This replaces that with idiomatic DI registration.
Tasks
AddOnTopic()registration helper for the core mapping/lookup services (ServiceCollectionExtensions,OnTopic.AspNetCore.Mvc)AddTopicNavigation<TViewModel>()helper for the hierarchical navigation service (ServiceCollectionExtensions)AddSqlTopicRepository()helper for the SQL repository (OnTopic.Data.Sql)AddTopicCaching()helper for the caching repository (OnTopic.Data.Caching)SampleActivator,Program,OnTopic.AspNetCore.Mvc.Host)SampleActivator,OnTopic.AspNetCore.Mvc.IntegrationTests.Host)SampleActivator