Skip to content

Commit b1f743a

Browse files
committed
Update to .net 9
1 parent 6fe41f0 commit b1f743a

File tree

14 files changed

+17
-18
lines changed

14 files changed

+17
-18
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- name: Setup .NET Core
1818
uses: actions/setup-dotnet@v4
1919
with:
20-
dotnet-version: 8.0.x
20+
dotnet-version: 9.0.x
2121
- name: Build SignalR Lib
2222
run: dotnet build --configuration Release ./src/OrgnalR.SignalR
2323
- name: Build Orleans Lib

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- name: Setup .NET Core
1414
uses: actions/setup-dotnet@v4
1515
with:
16-
dotnet-version: 8.0.x
16+
dotnet-version: 9.0.x
1717
- name: Pack GrainAdaptors
1818
run: dotnet pack --configuration Release ./src/OrgnalR.Backplane.GrainAdaptors
1919
- name: Pack GainImplementations

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- name: Setup .NET Core
2020
uses: actions/setup-dotnet@v4
2121
with:
22-
dotnet-version: 8.0.x
22+
dotnet-version: 9.0.x
2323
- name: Run tests
2424
run: dotnet test ./test/OrgnalR.Tests --collect:"XPlat Code Coverage"
2525
- name: Code Coverage Summary

Directory.Build.props

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
<Project>
22
<PropertyGroup>
3-
<TargetFramework>net7.0</TargetFramework>
4-
<Version>2.3.2</Version>
3+
<TargetFramework>net9.0</TargetFramework>
4+
<Version>9.0.0</Version>
55
<Authors>Liam Morrow</Authors>
66
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
77
<IncludeSymbols>true</IncludeSymbols>
88
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
99
<IncludeSource>true</IncludeSource>
1010
<RepositoryUrl>https://github.com/LiamMorrow/OrgnalR</RepositoryUrl>
1111
<PackageReleaseNotes>
12-
Bugs:
13-
- Fix state not actually persisting
12+
Update to .NET 9.0
1413
</PackageReleaseNotes>
1514
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
1615
<LangVersion>11.0</LangVersion>

src/OrgnalR.Backplane.GrainAdaptors/OrgnalR.Backplane.GrainAdaptors.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
</Description>
1111
</PropertyGroup>
1212
<ItemGroup>
13-
<PackageReference Include="Microsoft.Orleans.Sdk" Version="7.2.7" />
13+
<PackageReference Include="Microsoft.Orleans.Sdk" Version="9.0.1" />
1414
</ItemGroup>
1515
<ItemGroup>
1616
<ProjectReference Include="..\OrgnalR.Backplane.GrainInterfaces\OrgnalR.Backplane.GrainInterfaces.csproj" />

src/OrgnalR.Backplane.GrainImplementations/GroupActorGrain.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public class GroupActorGrain : Grain<GroupActorGrainState>, IGroupActorGrain
1818

1919
public override Task OnActivateAsync(CancellationToken cancellationToken)
2020
{
21-
RegisterTimer(
21+
this.RegisterGrainTimer(
2222
WriteStateIfDirty,
2323
string.Empty, // state is not used
2424
TimeSpan.FromSeconds(30),

src/OrgnalR.Backplane.GrainImplementations/OrgnalR.Backplane.GrainImplementations.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@
1414
<ProjectReference Include="..\OrgnalR.Core\OrgnalR.Core.csproj" />
1515
</ItemGroup>
1616
<ItemGroup>
17-
<PackageReference Include="Microsoft.Orleans.Sdk" Version="7.2.7" />
17+
<PackageReference Include="Microsoft.Orleans.Sdk" Version="9.0.1" />
1818
</ItemGroup>
1919
</Project>

src/OrgnalR.Backplane.GrainImplementations/RewindableMessageGrain.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,10 @@ public override Task OnActivateAsync(CancellationToken cancellationToken)
4444
maxMessages,
4545
State.Messages
4646
);
47-
47+
4848
if (persistenceInterval > TimeSpan.Zero)
4949
{
50-
RegisterTimer(
50+
this.RegisterGrainTimer(
5151
WriteStateIfDirtyAsync,
5252
string.Empty, // state is not used
5353
persistenceInterval,

src/OrgnalR.Backplane.GrainImplementations/UserActorGrain.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public class UserActorGrain : Grain<UserActorGrainState>, IUserActorGrain
1818

1919
public override Task OnActivateAsync(CancellationToken cancellationToken)
2020
{
21-
RegisterTimer(
21+
this.RegisterGrainTimer(
2222
WriteStateIfDirty,
2323
string.Empty, // state is not used
2424
TimeSpan.FromSeconds(30),

src/OrgnalR.Backplane.GrainInterfaces/OrgnalR.Backplane.GrainInterfaces.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@
1313
<ProjectReference Include="..\OrgnalR.Core\OrgnalR.Core.csproj" />
1414
</ItemGroup>
1515
<ItemGroup>
16-
<PackageReference Include="Microsoft.Orleans.Sdk" Version="7.2.7" />
16+
<PackageReference Include="Microsoft.Orleans.Sdk" Version="9.0.1" />
1717
</ItemGroup>
1818
</Project>

0 commit comments

Comments
 (0)