Merge pull request #2311 from sbwalker/dev

introduce ITransientService interface for auto registration of transient services (for DBContexts and Repositories)
This commit is contained in:
Shaun Walker
2022-07-26 09:42:12 -04:00
committed by GitHub
10 changed files with 35 additions and 15 deletions

View File

@ -114,6 +114,7 @@ namespace Oqtane.Client
private static void RegisterModuleServices(Assembly assembly, IServiceCollection services)
{
// dynamically register module scoped services
var implementationTypes = assembly.GetInterfaces<IService>();
foreach (var implementationType in implementationTypes)
{