21 lines
753 B
C#
21 lines
753 B
C#
using Microsoft.Extensions.DependencyInjection;
|
|
using Microsoft.Extensions.Options;
|
|
using OrchardCore.Apis;
|
|
using OrchardCore.Forms.GraphQL;
|
|
using OrchardCore.Forms.Models;
|
|
using OrchardCore.Modules;
|
|
using OrchardCore.ResourceManagement;
|
|
|
|
namespace Oap.Theme;
|
|
|
|
public class Startup : StartupBase
|
|
{
|
|
public override void ConfigureServices(IServiceCollection services)
|
|
{
|
|
services.AddTransient<IConfigureOptions<ResourceManagementOptions>, ResourceManagementOptionsConfiguration>();
|
|
services.AddObjectGraphType<FormElementLabelPart, FormElementLabelPartQueryObjectType>();
|
|
services.AddObjectGraphType<SelectPart, SelectPartQueryObjectType>();
|
|
services.AddObjectGraphType<SelectOption, SelectOptionQueryObjectType>();
|
|
}
|
|
}
|