-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Update Orleans samples to 10.0.0 #7085
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
5d927f9
959559a
42883c5
3624ca2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,14 +1,17 @@ | ||
| <Project Sdk="Microsoft.NET.Sdk"> | ||
| <PropertyGroup> | ||
| <OutputType>Exe</OutputType> | ||
| <TargetFramework>net10.0</TargetFramework> | ||
| <ImplicitUsings>enable</ImplicitUsings> | ||
| <Nullable>enable</Nullable> | ||
| <ServerGarbageCollection>true</ServerGarbageCollection> | ||
| <OutputType>Exe</OutputType> | ||
| </PropertyGroup> | ||
| <ItemGroup> | ||
| <PackageReference Include="Microsoft.Extensions.Hosting"/> | ||
| <PackageReference Include="Microsoft.Extensions.Logging.Console"/> | ||
| <PackageReference Include="Microsoft.Orleans.Client"/> | ||
| <PackageReference Include="Microsoft.Extensions.Hosting" Version="10.0.2" /> | ||
| <PackageReference Include="Microsoft.Extensions.Logging.Console" Version="10.0.2" /> | ||
| <PackageReference Include="Microsoft.Orleans.Client" Version="10.0.0" /> | ||
| </ItemGroup> | ||
| <ItemGroup> | ||
| <ProjectReference Include="..\AdventureGrainInterfaces\AdventureGrainInterfaces.csproj"/> | ||
| <ProjectReference Include="..\AdventureGrainInterfaces\AdventureGrainInterfaces.csproj" /> | ||
| </ItemGroup> | ||
| </Project> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,12 @@ | ||
| <Project Sdk="Microsoft.NET.Sdk"> | ||
| <PropertyGroup> | ||
| <TargetFramework>net10.0</TargetFramework> | ||
| <ImplicitUsings>enable</ImplicitUsings> | ||
| <Nullable>enable</Nullable> | ||
| <ServerGarbageCollection>true</ServerGarbageCollection> | ||
| </PropertyGroup> | ||
| <ItemGroup> | ||
| <PackageReference Include="Microsoft.Orleans.Sdk"/> | ||
| <PackageReference Include="Microsoft.Orleans.Sdk" Version="10.0.0" /> | ||
| </ItemGroup> | ||
| </Project> | ||
|
|
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,8 +1,16 @@ | ||
| <Project Sdk="Microsoft.NET.Sdk"> | ||
| <PropertyGroup> | ||
| <TargetFramework>net10.0</TargetFramework> | ||
| <ImplicitUsings>enable</ImplicitUsings> | ||
| <Nullable>enable</Nullable> | ||
| <ServerGarbageCollection>true</ServerGarbageCollection> | ||
| </PropertyGroup> | ||
|
|
||
| <ItemGroup> | ||
| <PackageReference Include="Microsoft.Orleans.Sdk"/> | ||
| <PackageReference Include="Microsoft.Orleans.Sdk" Version="10.0.0" /> | ||
| </ItemGroup> | ||
|
|
||
| <ItemGroup> | ||
| <ProjectReference Include="..\AdventureGrainInterfaces\AdventureGrainInterfaces.csproj"/> | ||
| <ProjectReference Include="..\AdventureGrainInterfaces\AdventureGrainInterfaces.csproj" /> | ||
| </ItemGroup> | ||
| </Project> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,8 +1,3 @@ | ||
| <Project> | ||
| <PropertyGroup> | ||
| <TargetFramework>net9.0</TargetFramework> | ||
| <ImplicitUsings>enable</ImplicitUsings> | ||
| <Nullable>enable</Nullable> | ||
| <ServerGarbageCollection>true</ServerGarbageCollection> | ||
| </PropertyGroup> | ||
| <Project> | ||
| <Import Project="$([MSBuild]::GetPathOfFileAbove('Directory.Build.props', '$(MSBuildThisFileDirectory)../'))" /> | ||
| </Project> |
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| @echo off | ||
| echo === Adventure Sample === | ||
| echo This sample requires running both server and client. | ||
| echo. | ||
| echo Starting server... | ||
| start "Adventure Server" cmd /k dotnet run --project "%~dp0AdventureServer\AdventureServer.csproj" | ||
| echo Waiting for server to start... | ||
| timeout /t 5 /nobreak >nul | ||
| echo Starting client... | ||
| dotnet run --project "%~dp0AdventureClient\AdventureClient.csproj" |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| #!/bin/bash | ||
| SCRIPT_DIR="$(dirname "$0")" | ||
| echo "=== Adventure Sample ===" | ||
| echo "This sample requires running both server and client." | ||
| echo "" | ||
| echo "Starting server in background..." | ||
| dotnet run --project "$SCRIPT_DIR/AdventureServer/AdventureServer.csproj" & | ||
| SERVER_PID=$! | ||
| echo "Waiting for server to start..." | ||
| sleep 5 | ||
| echo "Starting client..." | ||
| dotnet run --project "$SCRIPT_DIR/AdventureClient/AdventureClient.csproj" | ||
| echo "Stopping server..." | ||
| kill $SERVER_PID 2>/dev/null |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,9 +1,17 @@ | ||
| <Project Sdk="Microsoft.NET.Sdk"> | ||
| <PropertyGroup> | ||
| <TargetFramework>net10.0</TargetFramework> | ||
| <ImplicitUsings>enable</ImplicitUsings> | ||
| <Nullable>enable</Nullable> | ||
| <ServerGarbageCollection>true</ServerGarbageCollection> | ||
| </PropertyGroup> | ||
|
|
||
| <ItemGroup> | ||
| <PackageReference Include="Microsoft.Orleans.Transactions"/> | ||
| <PackageReference Include="Microsoft.Orleans.Sdk"/> | ||
| <PackageReference Include="Microsoft.Orleans.Transactions" Version="10.0.0" /> | ||
| <PackageReference Include="Microsoft.Orleans.Sdk" Version="10.0.0" /> | ||
| </ItemGroup> | ||
|
|
||
| <ItemGroup> | ||
| <ProjectReference Include="..\AccountTransfer.Interfaces\AccountTransfer.Interfaces.csproj"/> | ||
| <ProjectReference Include="..\AccountTransfer.Interfaces\AccountTransfer.Interfaces.csproj" /> | ||
| </ItemGroup> | ||
| </Project> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,12 @@ | ||
| <Project Sdk="Microsoft.NET.Sdk"> | ||
| <PropertyGroup> | ||
| <TargetFramework>net10.0</TargetFramework> | ||
| <ImplicitUsings>enable</ImplicitUsings> | ||
| <Nullable>enable</Nullable> | ||
| <ServerGarbageCollection>true</ServerGarbageCollection> | ||
| </PropertyGroup> | ||
| <ItemGroup> | ||
| <PackageReference Include="Microsoft.Orleans.Transactions"/> | ||
| <PackageReference Include="Microsoft.Orleans.Sdk"/> | ||
| <PackageReference Include="Microsoft.Orleans.Transactions" Version="10.0.0" /> | ||
| <PackageReference Include="Microsoft.Orleans.Sdk" Version="10.0.0" /> | ||
| </ItemGroup> | ||
| </Project> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,14 +1,18 @@ | ||
| <Project Sdk="Microsoft.NET.Sdk"> | ||
| <PropertyGroup> | ||
| <TargetFramework>net10.0</TargetFramework> | ||
| <ImplicitUsings>enable</ImplicitUsings> | ||
| <Nullable>enable</Nullable> | ||
| <ServerGarbageCollection>true</ServerGarbageCollection> | ||
| <OutputType>Exe</OutputType> | ||
| </PropertyGroup> | ||
| <ItemGroup> | ||
| <PackageReference Include="Microsoft.Extensions.Hosting"/> | ||
| <PackageReference Include="Microsoft.Extensions.Logging.Console"/> | ||
| <PackageReference Include="Microsoft.Orleans.Client"/> | ||
| <PackageReference Include="Microsoft.Orleans.Transactions"/> | ||
| <PackageReference Include="Microsoft.Extensions.Hosting" Version="10.0.2" /> | ||
| <PackageReference Include="Microsoft.Extensions.Logging.Console" Version="10.0.2" /> | ||
| <PackageReference Include="Microsoft.Orleans.Client" Version="10.0.0" /> | ||
| <PackageReference Include="Microsoft.Orleans.Transactions" Version="10.0.0" /> | ||
| </ItemGroup> | ||
| <ItemGroup> | ||
| <ProjectReference Include="..\AccountTransfer.Interfaces\AccountTransfer.Interfaces.csproj"/> | ||
| <ProjectReference Include="..\AccountTransfer.Interfaces\AccountTransfer.Interfaces.csproj" /> | ||
| </ItemGroup> | ||
| </Project> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,15 +1,19 @@ | ||
| <Project Sdk="Microsoft.NET.Sdk"> | ||
| <PropertyGroup> | ||
| <TargetFramework>net10.0</TargetFramework> | ||
| <ImplicitUsings>enable</ImplicitUsings> | ||
| <Nullable>enable</Nullable> | ||
| <ServerGarbageCollection>true</ServerGarbageCollection> | ||
| <OutputType>Exe</OutputType> | ||
| </PropertyGroup> | ||
| <ItemGroup> | ||
| <PackageReference Include="Microsoft.Extensions.Hosting"/> | ||
| <PackageReference Include="Microsoft.Extensions.Logging.Console"/> | ||
| <PackageReference Include="Microsoft.Orleans.Server"/> | ||
| <PackageReference Include="Microsoft.Orleans.Transactions"/> | ||
| <PackageReference Include="Microsoft.Extensions.Hosting" Version="10.0.2" /> | ||
| <PackageReference Include="Microsoft.Extensions.Logging.Console" Version="10.0.2" /> | ||
| <PackageReference Include="Microsoft.Orleans.Server" Version="10.0.0" /> | ||
| <PackageReference Include="Microsoft.Orleans.Transactions" Version="10.0.0" /> | ||
| </ItemGroup> | ||
| <ItemGroup> | ||
| <ProjectReference Include="..\AccountTransfer.Grains\AccountTransfer.Grains.csproj"/> | ||
| <ProjectReference Include="..\AccountTransfer.Interfaces\AccountTransfer.Interfaces.csproj"/> | ||
| <ProjectReference Include="..\AccountTransfer.Grains\AccountTransfer.Grains.csproj" /> | ||
| <ProjectReference Include="..\AccountTransfer.Interfaces\AccountTransfer.Interfaces.csproj" /> | ||
| </ItemGroup> | ||
| </Project> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,11 +1,8 @@ | ||
| using Microsoft.Extensions.Hosting; | ||
| using Microsoft.Extensions.Hosting; | ||
|
|
||
| await Host.CreateDefaultBuilder(args) | ||
| .UseOrleans(siloBuilder => | ||
| { | ||
| siloBuilder | ||
| .UseOrleans(siloBuilder => siloBuilder | ||
| .UseLocalhostClustering() | ||
| .AddMemoryGrainStorageAsDefault() | ||
| .UseTransactions(); | ||
| }) | ||
| .UseTransactions()) | ||
| .RunConsoleAsync(); |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,3 @@ | ||
| <Project> | ||
| <PropertyGroup> | ||
| <TargetFramework>net9.0</TargetFramework> | ||
| <ImplicitUsings>enable</ImplicitUsings> | ||
| <Nullable>enable</Nullable> | ||
| </PropertyGroup> | ||
| <Project> | ||
| <Import Project="$([MSBuild]::GetPathOfFileAbove('Directory.Build.props', '$(MSBuildThisFileDirectory)../'))" /> | ||
| </Project> |
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| @echo off | ||
| echo === BankAccount Sample === | ||
| echo This sample requires running both server and client. | ||
| echo. | ||
| echo Starting server... | ||
| start "Bank Server" cmd /k dotnet run --project "%~dp0BankServer\BankServer.csproj" | ||
| echo Waiting for server to start... | ||
| timeout /t 5 /nobreak >nul | ||
| echo Starting client... | ||
| dotnet run --project "%~dp0BankClient\BankClient.csproj" |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| #!/bin/bash | ||
| SCRIPT_DIR="$(dirname "$0")" | ||
| echo "=== BankAccount Sample ===" | ||
| echo "This sample requires running both server and client." | ||
| echo "" | ||
| echo "Starting server in background..." | ||
| dotnet run --project "$SCRIPT_DIR/BankServer/BankServer.csproj" & | ||
| SERVER_PID=$! | ||
| echo "Waiting for server to start..." | ||
| sleep 5 | ||
| echo "Starting client..." | ||
| dotnet run --project "$SCRIPT_DIR/BankClient/BankClient.csproj" | ||
| echo "Stopping server..." | ||
| kill $SERVER_PID 2>/dev/null |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,14 +1,14 @@ | ||
| <Project Sdk="Microsoft.NET.Sdk.Web"> | ||
|
|
||
| <PropertyGroup> | ||
| <TargetFramework>net9.0</TargetFramework> | ||
| <Nullable>enable</Nullable> | ||
| <TargetFramework>net10.0</TargetFramework> | ||
| <ImplicitUsings>enable</ImplicitUsings> | ||
| <Nullable>enable</Nullable> | ||
| <ServerGarbageCollection>true</ServerGarbageCollection> | ||
| </PropertyGroup> | ||
|
|
||
| <ItemGroup> | ||
| <PackageReference Include="Microsoft.Orleans.Server" Version="9.0.1" /> | ||
| <PackageReference Include="Microsoft.Orleans.Streaming" Version="9.0.1" /> | ||
| <PackageReference Include="Microsoft.Orleans.Server" Version="10.0.0" /> | ||
| <PackageReference Include="Microsoft.Orleans.Streaming" Version="10.0.0" /> | ||
| </ItemGroup> | ||
|
|
||
| </Project> |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -1,4 +1,4 @@ | ||||||
| using BlazorServer.Components; | ||||||
| using BlazorServer.Components; | ||||||
| using BlazorServer.Services; | ||||||
| using Orleans.Providers; | ||||||
|
|
||||||
|
|
@@ -33,7 +33,7 @@ | |||||
|
|
||||||
| app.UseAntiforgery(); | ||||||
|
|
||||||
| app.MapStaticAssets(); | ||||||
| app.UseStaticFiles(); | ||||||
|
||||||
| app.UseStaticFiles(); | |
| app.MapStaticAssets(); |
Uh oh!
There was an error while loading. Please reload this page.