-
Notifications
You must be signed in to change notification settings - Fork 0
/
Startup.cs
30 lines (27 loc) · 1.07 KB
/
Startup.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
using BCS.AdminSearch.Configurations;
using BCS.AdminSearch.Drivers;
using BCS.AdminSearch.Models;
using BCS.AdminSearch.Services;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Options;
using OrchardCore.DisplayManagement.Handlers;
using OrchardCore.Modules;
using OrchardCore.Navigation;
using OrchardCore.Security.Permissions;
using OrchardCore.Settings;
namespace BCS.AdminSearch
{
public class Startup : StartupBase
{
public override void ConfigureServices(IServiceCollection services)
{
services.AddScoped<INavigationProvider, AdminMenu>();
services.AddScoped<IAdminSearchService, AdminSearchService>();
services.AddScoped<IPermissionProvider, Permissions>();
services.AddScoped<IDisplayDriver<ISite>, AdminSearchSettingsDisplayDriver>();
services.AddTransient<IConfigureOptions<AdminSearchSettings>, AdminSearchSettingsConfiguration>();
// Search Filter Providers
services.AddScoped<IAdminSearchFilter, ContentTypeAdminSearchFilter>();
}
}
}