Skip to content

Commit 2012c60

Browse files
authored
Hot Chocolate version 12 and .NET 6 (#123)
1 parent fb54f50 commit 2012c60

File tree

9 files changed

+10
-10
lines changed

9 files changed

+10
-10
lines changed

global.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"sdk": {
3-
"version": "5.0.103"
3+
"version": "6.0.100-preview.7.21379.14"
44
}
55
}

src/Clients/src/Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
<Import Project="$([MSBuild]::GetPathOfFileAbove('Directory.Build.props', '$(MSBuildThisFileDirectory)../'))" />
33

44
<PropertyGroup>
5-
<TargetFrameworks>net5.0; netcoreapp3.1</TargetFrameworks>
5+
<TargetFrameworks>net6.0; net5.0; netcoreapp3.1</TargetFrameworks>
66
</PropertyGroup>
77
</Project>

src/Clients/src/HotChocolate/HotChocolate.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
</PropertyGroup>
1212

1313
<ItemGroup>
14+
<PackageReference Include="HotChocolate" Version="12.0.0" />
1415
<FrameworkReference Include="Microsoft.AspNetCore.App" />
15-
<PackageReference Include="HotChocolate" Version="11.0.0" />
1616
</ItemGroup>
1717

1818
<ItemGroup>

src/Clients/src/HotChocolate/HotChocolateActivity.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ namespace Thor.Extensions.HotChocolate
1414
[Serializable]
1515
internal class HotChocolateActivity
1616
: IActivity
17-
, IActivityScope
17+
, IDisposable
1818
{
1919
private readonly Guid _relatedActivityId;
2020
private bool _disposed;

src/Clients/src/HotChocolate/HotChocolateDiagnosticsListener.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
namespace Thor.Extensions.HotChocolate
99
{
10-
internal class HotChocolateDiagnosticsListener : DiagnosticEventListener
10+
internal class HotChocolateDiagnosticsListener : ExecutionDiagnosticEventListener
1111
{
1212
private readonly IRequestFormatter _formatter;
1313

@@ -16,7 +16,7 @@ public HotChocolateDiagnosticsListener(IRequestFormatter formatter)
1616
_formatter = formatter ?? throw new ArgumentNullException(nameof(formatter));
1717
}
1818

19-
public override IActivityScope ExecuteRequest(IRequestContext context)
19+
public override IDisposable ExecuteRequest(IRequestContext context)
2020
{
2121
var activity = HotChocolateActivity.Create(_formatter.Serialize(context.Request));
2222
context.SetActivity(activity);

src/Clients/test/Hosting.Tests/Hosting.Tests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<PrivateAssets>all</PrivateAssets>
1313
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
1414
</PackageReference>
15-
<PackageReference Include="HotChocolate.AspNetCore" Version="11.0.0" />
15+
<PackageReference Include="HotChocolate.AspNetCore" Version="12.0.0" />
1616
<PackageReference Include="Microsoft.CodeCoverage" Version="16.6.1" />
1717
<PackageReference Include="Microsoft.Extensions.Hosting" Version="3.1.5" />
1818
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.6.1" />

src/Clients/test/HotChocolate.Tests/HotChocolate.Tests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<PrivateAssets>all</PrivateAssets>
2020
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
2121
</PackageReference>
22-
<PackageReference Include="HotChocolate.AspNetCore" Version="11.0.0" />
22+
<PackageReference Include="HotChocolate.AspNetCore" Version="12.0.0" />
2323
<PackageReference Include="Microsoft.CodeCoverage" Version="16.6.1" />
2424
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.6.1" />
2525
<PackageReference Include="Moq" Version="4.14.5" />

src/Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
<EmbedUntrackedSources>true</EmbedUntrackedSources>
3939
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
4040
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
41-
<LangVersion>8.0</LangVersion>
41+
<LangVersion>latest</LangVersion>
4242
<IsPackable>false</IsPackable>
4343
</PropertyGroup>
4444

src/Test.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project>
22

33
<PropertyGroup>
4-
<TargetFrameworks>net5.0;netcoreapp3.1</TargetFrameworks>
4+
<TargetFrameworks>net6.0;net5.0;netcoreapp3.1</TargetFrameworks>
55
<IsPackable>false</IsPackable>
66
</PropertyGroup>
77

0 commit comments

Comments
 (0)