Skip to content

Commit c2d3856

Browse files
authored
Add serialization packages into metapackage (#727)
1 parent 723dae4 commit c2d3856

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

samples/Samples.Server/GraphQLHttpMiddlewareWithLogs.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ protected override Task RequestExecutedAsync(in GraphQLRequestExecutionResult re
4040

4141
protected override CancellationToken GetCancellationToken(HttpContext context)
4242
{
43-
// custom CancellationToken example
43+
// custom CancellationToken example
4444
var cts = CancellationTokenSource.CreateLinkedTokenSource(base.GetCancellationToken(context), new CancellationTokenSource(TimeSpan.FromSeconds(5)).Token);
4545
return cts.Token;
4646
}

samples/Samples.Server/StartupWithRouting.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
using System.Collections.Generic;
2+
using System.Threading.Tasks;
23
using GraphQL.DataLoader;
34
using GraphQL.Execution;
4-
using System.Threading.Tasks;
5+
using GraphQL.MicrosoftDI;
56
using GraphQL.Samples.Schemas.Chat;
67
using GraphQL.Server;
78
using GraphQL.Server.Ui.Altair;
89
using GraphQL.Server.Ui.GraphiQL;
910
using GraphQL.Server.Ui.Playground;
1011
using GraphQL.Server.Ui.Voyager;
1112
using GraphQL.SystemReactive;
13+
using GraphQL.SystemTextJson;
1214
using Microsoft.AspNetCore.Builder;
1315
using Microsoft.AspNetCore.Hosting;
1416
using Microsoft.Extensions.Configuration;
1517
using Microsoft.Extensions.DependencyInjection;
1618
using Microsoft.Extensions.Hosting;
1719
using Microsoft.Extensions.Logging;
18-
using GraphQL.MicrosoftDI;
19-
using GraphQL.SystemTextJson;
2020

2121
namespace GraphQL.Samples.Server
2222
{
@@ -42,7 +42,7 @@ public void ConfigureServices(IServiceCollection services)
4242

4343
services.AddGraphQL(builder => builder
4444
.AddServer(true)
45-
.AddDocumentExecuter<SubscriptionDocumentExecuter>()
45+
.AddSubscriptionExecutionStrategy()
4646
.AddSchema<ChatSchema>()
4747
.ConfigureExecutionOptions(options =>
4848
{

src/All/All.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
<PackageReference Include="GraphQL.MemoryCache" Version="5.0.0-preview-473" />
2323
<PackageReference Include="GraphQL.MicrosoftDI" Version="5.0.0-preview-473" />
2424
<PackageReference Include="GraphQL.SystemReactive" Version="5.0.0-preview-473" />
25+
<PackageReference Include="GraphQL.SystemTextJson" Version="5.0.0-preview-473" />
2526
</ItemGroup>
2627

2728
</Project>

0 commit comments

Comments
 (0)