-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade chat room orleans sample to dotnet 9 (#7014)
* Upgrade ChatRoom orleans sample to dotnet 9 * Set default name to Anonymous if not specified * Remove unused using * Ensure chatroom message history doesn't grow above 100 * Update orleans/ChatRoom/ChatRoom.Service/ChannelGrain.cs --------- Co-authored-by: David Pine <[email protected]>
- Loading branch information
1 parent
4c61fc9
commit 8812ba7
Showing
10 changed files
with
60 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,15 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>net8.0</TargetFramework> | ||
<TargetFramework>net9.0</TargetFramework> | ||
<ImplicitUsings>enable</ImplicitUsings> | ||
<Nullable>enable</Nullable> | ||
<RootNamespace>ChatRoomt</RootNamespace> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Microsoft.Orleans.Sdk" Version="8.0.0" /> | ||
<PackageReference Include="Microsoft.Orleans.Streaming" Version="8.0.0" /> | ||
<PackageReference Include="Microsoft.Orleans.Sdk" Version="9.0.1" /> | ||
<PackageReference Include="Microsoft.Orleans.Streaming" Version="9.0.1" /> | ||
</ItemGroup> | ||
|
||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
using Microsoft.Extensions.Hosting; | ||
using Microsoft.Extensions.Hosting; | ||
using Microsoft.Extensions.Logging; | ||
|
||
await Host.CreateDefaultBuilder(args) | ||
.UseOrleans(siloBuilder => | ||
{ | ||
siloBuilder | ||
.UseLocalhostClustering() | ||
siloBuilder.UseLocalhostClustering() | ||
.AddMemoryGrainStorage("PubSubStore") | ||
.AddMemoryStreams("chat"); | ||
.AddMemoryStreams("chat") | ||
.ConfigureLogging(logging => logging.AddConsole()); | ||
}) | ||
.RunConsoleAsync(); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
[ | ||
{ | ||
"Name": "Run client and service", | ||
"Projects": [ | ||
{ | ||
"Path": "ChatRoom.Client\\ChatRoom.Client.csproj", | ||
"Action": "Start" | ||
}, | ||
{ | ||
"Path": "ChatRoom.Service\\ChatRoom.Service.csproj", | ||
"Action": "Start" | ||
} | ||
] | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters