38 lines
1.3 KiB
C#
38 lines
1.3 KiB
C#
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;
|
|
|
|
namespace SZUAbsolventenverein.Module.AdminModules.Startup
|
|
{
|
|
public class ClientStartup : IClientStartup
|
|
{
|
|
public void ConfigureServices(IServiceCollection services)
|
|
{
|
|
if (!services.Any(s => s.ServiceType == typeof(IAdminModulesService)))
|
|
{
|
|
services.AddScoped<IAdminModulesService, AdminModulesService>();
|
|
}
|
|
|
|
if (!services.Any(s => s.ServiceType == typeof(IReportingHandler)))
|
|
{
|
|
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>();
|
|
}
|
|
}
|
|
}
|
|
}
|