Skip to content

Commit 7286960

Browse files
authored
[Fusion] Added basic query pipeline (#8362)
1 parent ad587ac commit 7286960

File tree

146 files changed

+6258
-2216
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

146 files changed

+6258
-2216
lines changed

src/All.slnx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
<Project Path="HotChocolate/AspNetCore/src/Transport.Http/HotChocolate.Transport.Http.csproj" />
4646
<Project Path="HotChocolate/AspNetCore/src/Transport.Sockets.Client/HotChocolate.Transport.Sockets.Client.csproj" />
4747
<Project Path="HotChocolate/AspNetCore/src/Transport.Sockets/HotChocolate.Transport.Sockets.csproj" />
48+
<Project Path="HotChocolate/AspNetCore/src/Transport.Formatters/HotChocolate.Transport.Formatters.csproj" />
4849
</Folder>
4950
<Folder Name="/HotChocolate/AspNetCore/test/">
5051
<Project Path="HotChocolate/AspNetCore/test/AspNetCore.Authorization.Opa.Tests/HotChocolate.AspNetCore.Authorization.Opa.Tests.csproj" />
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
namespace GreenDonut;
2+
3+
public class KeyNotFoundException(string message) : Exception(message);

src/GreenDonut/src/GreenDonut/Result.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,5 +107,3 @@ public static implicit operator Result<TValue>(TValue value)
107107
public static implicit operator TValue(Result<TValue> result)
108108
=> result.Value;
109109
}
110-
111-
public class KeyNotFoundException(string message) : Exception(message);

src/HotChocolate/AspNetCore/HotChocolate.AspNetCore.slnx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
<Project Path="src/Transport.Sockets.Client/HotChocolate.Transport.Sockets.Client.csproj" />
1010
<Project Path="src/Transport.Sockets/HotChocolate.Transport.Sockets.csproj" />
1111
</Folder>
12+
<Folder Name="/src/Transport.Formatters/">
13+
<Project Path="src/Transport.Formatters/HotChocolate.Transport.Formatters.csproj" />
14+
</Folder>
1215
<Folder Name="/test/">
1316
<Project Path="test/AspNetCore.Authorization.Opa.Tests/HotChocolate.AspNetCore.Authorization.Opa.Tests.csproj" />
1417
<Project Path="test/AspNetCore.Authorization.Tests/HotChocolate.AspNetCore.Authorization.Tests.csproj" />

src/HotChocolate/AspNetCore/src/AspNetCore/Extensions/HotChocolateAspNetCoreServiceCollectionExtensions.Http.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
using HotChocolate.AspNetCore;
44
using HotChocolate.AspNetCore.Serialization;
55
using HotChocolate.Execution.Configuration;
6-
using HotChocolate.Execution.Serialization;
6+
using HotChocolate.Transport.Formatters;
77

88
// ReSharper disable once CheckNamespace
99
namespace Microsoft.Extensions.DependencyInjection;

src/HotChocolate/AspNetCore/src/AspNetCore/HotChocolate.AspNetCore.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
<ProjectReference Include="..\..\..\Core\src\Subscriptions.InMemory\HotChocolate.Subscriptions.InMemory.csproj" />
2020
<ProjectReference Include="..\..\..\Core\src\Types.Scalars.Upload\HotChocolate.Types.Scalars.Upload.csproj" />
2121
<ProjectReference Include="..\..\..\Utilities\src\Utilities.DependencyInjection\HotChocolate.Utilities.DependencyInjection.csproj" />
22+
<ProjectReference Include="..\Transport.Formatters\HotChocolate.Transport.Formatters.csproj" />
2223
<ProjectReference Include="..\Transport.Sockets\HotChocolate.Transport.Sockets.csproj" />
2324
</ItemGroup>
2425

src/HotChocolate/AspNetCore/src/AspNetCore/Serialization/DefaultHttpResponseFormatter.cs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
using System.Text;
66
using System.Text.Encodings.Web;
77
using System.Text.Json;
8-
using HotChocolate.Execution.Serialization;
8+
using HotChocolate.Transport.Formatters;
99
using HotChocolate.Utilities;
1010
using Microsoft.AspNetCore.Http;
1111
using Microsoft.Net.Http.Headers;
@@ -56,7 +56,11 @@ public DefaultHttpResponseFormatter(
5656
: this(
5757
new HttpResponseFormatterOptions
5858
{
59-
Json = new JsonResultFormatterOptions { Indented = indented, Encoder = encoder }
59+
Json = new JsonResultFormatterOptions
60+
{
61+
Indented = indented,
62+
Encoder = encoder
63+
}
6064
},
6165
timeProvider)
6266
{

src/HotChocolate/AspNetCore/src/AspNetCore/Serialization/DefaultWebSocketPayloadFormatter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
using System.Text.Json;
2-
using HotChocolate.Execution.Serialization;
2+
using HotChocolate.Transport.Formatters;
33

44
namespace HotChocolate.AspNetCore.Serialization;
55

src/HotChocolate/AspNetCore/src/AspNetCore/Serialization/HttpResponseFormatterOptions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using HotChocolate.Execution.Serialization;
1+
using HotChocolate.Transport.Formatters;
22

33
namespace HotChocolate.AspNetCore.Serialization;
44

src/HotChocolate/AspNetCore/src/AspNetCore/Serialization/WebSocketPayloadFormatterOptions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using HotChocolate.Execution.Serialization;
1+
using HotChocolate.Transport.Formatters;
22

33
namespace HotChocolate.AspNetCore.Serialization;
44

0 commit comments

Comments
 (0)