-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Expand file tree
/
Copy pathStartup.cs
More file actions
19 lines (17 loc) · 799 Bytes
/
Startup.cs
File metadata and controls
19 lines (17 loc) · 799 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
using Microsoft.Extensions.DependencyInjection;
using OrchardCore.ContentLocalization.Models;
using OrchardCore.ContentLocalization.Records;
using OrchardCore.ContentManagement.GraphQL.Queries;
using OrchardCore.Modules;
namespace OrchardCore.ContentLocalization.GraphQL;
[RequireFeatures("OrchardCore.Apis.GraphQL")]
public sealed class Startup : StartupBase
{
public override void ConfigureServices(IServiceCollection services)
{
services.AddInputObjectGraphType<LocalizationPart, LocalizationInputObjectType>();
services.AddObjectGraphType<LocalizationPart, LocalizationQueryObjectType>();
services.AddTransient<IIndexAliasProvider, LocalizationPartIndexAliasProvider>();
services.AddWhereInputIndexPropertyProvider<LocalizedContentItemIndex>();
}
}