Skip to content

Commit f9985ad

Browse files
committed
Upgrade Orleans to 8.0. Some samples are still broken though.
1 parent b9d7f28 commit f9985ad

File tree

19 files changed

+49
-49
lines changed

19 files changed

+49
-49
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Samples for ASP.NET Core 8.0
22

33
- Samples for new features of ASP.NET Core **8.0** are available [here](/projects/.net8) (42).
4-
- Samples for new features of ASP.NET Core **7.0** are available [here](/projects/.net7) (45).
4+
- Samples for new features of ASP.NET Core **7.0** are available [here](/projects/.net7) (40).
55

66
> [!NOTE]
77
> This repository is WIP. I am updating all the previous samples from .NET 6/7 to .NET 8. Check the previous stable branch ([6.0](https://github.com/dodyg/practical-aspnetcore/tree/net6.0/)) if you want to browse the existing stable samples.
@@ -57,7 +57,7 @@ Greetings from Cairo, Egypt. You can [sponsor](https://github.com/sponsors/dodyg
5757
| [Windows Service](/projects/windows-service) | 1 | |
5858
| [Web Sockets](/projects/web-sockets) | 6 | |
5959
| [Web Utilities](/projects/web-utilities) | 3 | |
60-
| [Orleans](/projects/orleans) | 12 | |
60+
| [Orleans](/projects/orleans) | 5 | .NET.8 |
6161
| [Xml](/projects/xml) | 1 | |
6262
| [YARP](/projects/yarp) | 1 | |
6363

projects/.net7/README.MD

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# .NET 7 (45)
1+
# .NET 7 (40)
22

33
Samples in this section require .NET 7. You can download it from [here](https://dotnet.microsoft.com/en-us/download/dotnet/7.0).
44

@@ -173,26 +173,3 @@ Samples in this section require .NET 7. You can download it from [here](https://
173173

174174
In this case we add one extra `timestamp` property to the serialization process.
175175

176-
177-
## Orleans 7
178-
179-
* [Orleans - 1](orleans-1)
180-
181-
This sample shows how to use Orleans 7 in a minimal API application. It shows the new way on how to configure an Orleans server.
182-
183-
* [Orleans - 2](orleans-2)
184-
185-
This is a sample project that shows how to use Redis as a persistence provider for Orleans.
186-
187-
* [Orleans - 3](orleans-3)
188-
189-
This sample demonstrates the functionality of Orleans' Timer via Grain.RegisterTimer. It's useful to trigger actions to be repeated frequently (less than every minute).
190-
191-
* [Orleans - 4](orleans-4)
192-
193-
This sample demonstrates the functionality of Orleans' Reminder via Grain.RegisterOrUpdateReminder. It's useful to trigger actions to be repeated infrequently (more than every minute, hours or days). This is a persistent timer that survives grain restarts. [Reminder is much expensive than Timer](https://github.com/dotnet/orleans/issues/4218#issuecomment-373162275).
194-
195-
196-
- [Orleans - 5](orleans-5)
197-
198-
This sample demonstrates using HttpClient in a `grain` and also introduces the concept of a Stateless Worker `grain`.

projects/orleans/README.md

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,31 @@
1-
# Microsoft Orleans (12)
1+
# Microsoft Orleans (5)
22

33
These are simple samples to play with [Microsoft Orleans](https://github.com/dotnet/orleans), a cross-platform framework for building robust, scalable distributed applications.
44

5-
This section is very early in development. My experience in using an Actor framework is ZERO. Welcome to the world of Grains and Silo.
5+
## Orleans 8
66

7+
* [Orleans - 1](orleans-1)
8+
9+
This sample shows how to use Orleans 7 in a minimal API application. It shows the new way on how to configure an Orleans server.
10+
11+
* [Orleans - 2](orleans-2)
12+
13+
This is a sample project that shows how to use Redis as a persistence provider for Orleans.
14+
15+
* [Orleans - 3](orleans-3)
16+
17+
This sample demonstrates the functionality of Orleans' Timer via Grain.RegisterTimer. It's useful to trigger actions to be repeated frequently (less than every minute).
18+
19+
* [Orleans - 4](orleans-4)
20+
21+
This sample demonstrates the functionality of Orleans' Reminder via Grain.RegisterOrUpdateReminder. It's useful to trigger actions to be repeated infrequently (more than every minute, hours or days). This is a persistent timer that survives grain restarts. [Reminder is much expensive than Timer](https://github.com/dotnet/orleans/issues/4218#issuecomment-373162275).
22+
23+
24+
- [Orleans - 5](orleans-5)
25+
26+
This sample demonstrates using HttpClient in a `grain` and also introduces the concept of a Stateless Worker `grain`.
27+
28+
<!--
729
## Samples
830
931
- [Hello World](hello-world)
@@ -54,4 +76,4 @@ This section is very early in development. My experience in using an Actor frame
5476
5577
This is an RSS reader that read RSS feed sources from an OPML subscription list and publish it into a single stream with a single channel. The data then processed by implicit susbcriber.
5678
57-
dotnet6
79+
-->

projects/orleans/global.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"sdk": {
3+
"version": "8.0.100",
4+
"rollForward": "major"
5+
}
6+
}
File renamed without changes.
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
<Project Sdk="Microsoft.NET.Sdk.Web">
22
<PropertyGroup>
3-
<TargetFramework>net7.0</TargetFramework>
3+
<TargetFramework>net8.0</TargetFramework>
44
<Nullable>enable</Nullable>
55
<ImplicitUsings>true</ImplicitUsings>
6-
<LangVersion>latest</LangVersion>
76
</PropertyGroup>
87
<ItemGroup>
9-
<PackageReference Include="Microsoft.Orleans.Server" Version="7.0.0" />
8+
<PackageReference Include="Microsoft.Orleans.Server" Version="8.0.0" />
109
</ItemGroup>
1110
</Project>
File renamed without changes.
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
<Project Sdk="Microsoft.NET.Sdk.Web">
22
<PropertyGroup>
3-
<TargetFramework>net7.0</TargetFramework>
3+
<TargetFramework>net8.0</TargetFramework>
44
<Nullable>enable</Nullable>
55
<ImplicitUsings>true</ImplicitUsings>
6-
<LangVersion>latest</LangVersion>
76
</PropertyGroup>
87
<ItemGroup>
9-
<PackageReference Include="Microsoft.Orleans.Server" Version="7.0.0" />
8+
<PackageReference Include="Microsoft.Orleans.Server" Version="8.0.0" />
109
<PackageReference Include="Orleans.Persistence.Redis" Version="7.0.0" />
1110
</ItemGroup>
1211
</Project>

0 commit comments

Comments
 (0)