Skip to content

Commit ed0449f

Browse files
authored
Added missing this to AddGraphQL extension method (#6964)
1 parent f02d103 commit ed0449f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/HotChocolate/AspNetCore/src/AspNetCore/Extensions/HotChocolateAspNetCoreHostingBuilderExtensions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1+
#if NET8_0_OR_GREATER
12
using HotChocolate.Execution.Configuration;
23
using Microsoft.Extensions.DependencyInjection;
34
using static HotChocolate.AspNetCore.ServerDefaults;
45

5-
#if NET8_0_OR_GREATER
66
namespace Microsoft.Extensions.Hosting;
77

88
public static class HotChocolateAspNetCoreHostingBuilderExtensions
99
{
1010
public static IRequestExecutorBuilder AddGraphQL(
11-
IHostApplicationBuilder builder,
11+
this IHostApplicationBuilder builder,
1212
string? schemaName = default,
1313
int maxAllowedRequestSize = MaxAllowedRequestSize)
1414
=> builder.Services.AddGraphQLServer(schemaName, maxAllowedRequestSize);

0 commit comments

Comments
 (0)