New: Report Component available via Microsoft Dependency Injection

This commit is contained in:
2026-02-13 17:15:17 +01:00
parent 279624971b
commit 694d521698
2 changed files with 147 additions and 0 deletions

View File

@@ -1,7 +1,9 @@
using System;
using Microsoft.Extensions.DependencyInjection;
using System.Linq;
using Interfaces;
using Oqtane.Services;
using SZUAbsolventenverein.Module.AdminModules.Client.Components;
using SZUAbsolventenverein.Module.AdminModules.Services;
using SZUAbsolventenverein.Module.ReportSystem.Services;
@@ -20,10 +22,16 @@ namespace SZUAbsolventenverein.Module.AdminModules.Startup
{
services.AddScoped<IReportingHandler, ReportSystemReportingService>();
}
if (!services.Any(s => s.ServiceType == typeof(IReportSystemReportingService)))
{
services.AddScoped<IReportSystemReportingService, ReportSystemReportingService>();
}
if (!services.Any(s => s.ServiceType == typeof(IReportUI)))
{
services.AddScoped<IReportUI, ReportComponent>();
}
}
}
}