-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGraphQLServerModuleStartup.cs
More file actions
34 lines (30 loc) · 1.21 KB
/
GraphQLServerModuleStartup.cs
File metadata and controls
34 lines (30 loc) · 1.21 KB
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
31
32
33
34
using HotChocolate.Execution.Configuration;
namespace Modulight.Modules.Server.GraphQL
{
/// <summary>
/// Startup for graphql server module.
/// </summary>
public interface IGraphQLServerModuleStartup : IModuleStartup
{
/// <summary>
/// Configure the graphql schema. The module needs <see cref="GraphQLModuleTypeAttribute"/>.
/// </summary>
/// <param name="builder"></param>
void ConfigureGraphQLSchema(IRequestExecutorBuilder builder);
/// <summary>
/// Configure manifest for graphql server module.
/// </summary>
/// <param name="builder"></param>
void ConfigureGraphQLServerModuleManifest(IGraphQLServerModuleManifestBuilder builder);
}
/// <summary>
/// Empty implementation for <see cref="IGraphQLServerModuleStartup"/>.
/// </summary>
public abstract class GraphQLServerModuleStartup : ModuleStartup, IGraphQLServerModuleStartup
{
/// <inheritdoc/>
public virtual void ConfigureGraphQLSchema(IRequestExecutorBuilder builder) { }
/// <inheritdoc/>
public virtual void ConfigureGraphQLServerModuleManifest(IGraphQLServerModuleManifestBuilder builder) { }
}
}