Files
mixtape/zero.Backoffice/UIComposition/ServiceCollectionExtensions.cs
T

24 lines
849 B
C#
Raw Normal View History

2021-11-24 14:37:32 +01:00
using Microsoft.Extensions.DependencyInjection;
namespace zero.Backoffice.UIComposition;
public static class ServiceCollectionExtensions
{
public static IServiceCollection AddZeroBackofficeUIComposition(this IServiceCollection services)
{
services.AddSingleton<IBackofficeSection, DashboardSection>();
services.AddSingleton<IBackofficeSection, PagesSection>();
services.AddSingleton<IBackofficeSection, SpacesSection>();
services.AddSingleton<IBackofficeSection, MediaSection>();
services.AddSingleton<IBackofficeSection, SettingsSection>();
services.AddSingleton<ISettingsGroup, SystemSettings>();
services.AddSingleton<ISettingsGroup, ApplicationSettings>();
2021-11-27 16:09:02 +01:00
services.AddScoped<IPermissionProvider, SectionPermissions>();
2021-11-24 14:37:32 +01:00
2021-11-24 15:49:25 +01:00
services.AddOptions<BackofficeSettingsOptions>();
2021-11-24 14:37:32 +01:00
return services;
}
}