GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — feat(templates): add Orleans application templates by ReubenBond · Pull Request #10646 · dotnet/orleans Conversation
|
| File | Description |
|---|---|
| templates/Microsoft.Orleans.Templates/templates/orleans/README.md | Usage/readme for the multi-project orleans template. |
| templates/Microsoft.Orleans.Templates/templates/orleans/OrleansApp.slnx | Solution template grouping the generated projects. |
| templates/Microsoft.Orleans.Templates/templates/orleans/OrleansApp.Silo/Program.cs | Minimal silo host using localhost clustering. |
| templates/Microsoft.Orleans.Templates/templates/orleans/OrleansApp.Silo/OrleansApp.Silo.csproj | Silo project definition and dependencies. |
| templates/Microsoft.Orleans.Templates/templates/orleans/OrleansApp.Grains/OrleansApp.Grains.csproj | Grains project definition and dependencies. |
| templates/Microsoft.Orleans.Templates/templates/orleans/OrleansApp.Grains/HelloGrain.cs | Example grain implementation. |
| templates/Microsoft.Orleans.Templates/templates/orleans/OrleansApp.Contracts/OrleansApp.Contracts.csproj | Contracts project definition and dependencies. |
| templates/Microsoft.Orleans.Templates/templates/orleans/OrleansApp.Contracts/IHelloGrain.cs | Example grain interface. |
| templates/Microsoft.Orleans.Templates/templates/orleans/OrleansApp.Client/Program.cs | Minimal external client which calls the grain. |
| templates/Microsoft.Orleans.Templates/templates/orleans/OrleansApp.Client/OrleansApp.Client.csproj | Client project definition and dependencies. |
| templates/Microsoft.Orleans.Templates/templates/orleans/Directory.Packages.props | Central package management for the orleans template. |
| templates/Microsoft.Orleans.Templates/templates/orleans/.template.config/template.json | Template metadata and parameters (framework, Orleans version, restore). |
| templates/Microsoft.Orleans.Templates/templates/orleans/.template.config/dotnetcli.host.json | CLI parameter mapping for the orleans template. |
| templates/Microsoft.Orleans.Templates/templates/orleans-web/README.md | Usage/readme for the orleans-web template. |
| templates/Microsoft.Orleans.Templates/templates/orleans-web/Properties/launchSettings.json | Launch profile for consistent local URL. |
| templates/Microsoft.Orleans.Templates/templates/orleans-web/Program.cs | Minimal ASP.NET Core app co-hosting a silo and exposing /hello/{name}. |
| templates/Microsoft.Orleans.Templates/templates/orleans-web/OrleansWebApp.csproj | Web project definition and dependencies. |
| templates/Microsoft.Orleans.Templates/templates/orleans-web/IHelloGrain.cs | Example grain interface for the web template. |
| templates/Microsoft.Orleans.Templates/templates/orleans-web/HelloGrain.cs | Example grain implementation for the web template. |
| templates/Microsoft.Orleans.Templates/templates/orleans-web/Directory.Packages.props | Central package management for the orleans-web template. |
| templates/Microsoft.Orleans.Templates/templates/orleans-web/.template.config/template.json | Template metadata and parameters (framework, Orleans version, restore). |
| templates/Microsoft.Orleans.Templates/templates/orleans-web/.template.config/dotnetcli.host.json | CLI parameter mapping for the orleans-web template. |
| templates/Microsoft.Orleans.Templates/README.md | Package-level README describing installation and template usage. |
| templates/Microsoft.Orleans.Templates/Microsoft.Orleans.Templates.csproj | Packable template NuGet project configuration and content inclusion. |
| Orleans.slnx | Adds the templates project to the main solution. |
| docs/site/src/content/docs/quickstarts/build-your-first-orleans-app.md | Adds template-driven “fast path” commands to the first-app tutorial. |
| docs/site/src/content/docs/host/client.md | Adds a template-driven ASP.NET Core co-hosted client example. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Co-authored-by: Copilot App <[email protected]>
Co-authored-by: Copilot App <[email protected]>
Co-authored-by: Copilot App <[email protected]>
67e262c to
81ebaa2
Compare
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Co-authored-by: Copilot App <[email protected]> Copilot-Session: 10149d85-00f6-400c-a059-21cf9592e5d6
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Previously missed (2) — in code that hasn't changed since the last review.
docs/site/src/content/docs/quickstarts/build-your-first-orleans-app.md:42
orleans template using Azurite-backed Azure Storage resources (and it also requires a container runtime). This can confuse readers who expect the template to match the tutorial’s “localhost/no durable storage” setup. Consider explicitly calling out that difference here.The `Microsoft.Orleans.Templates` package creates this layout and adds an Aspire AppHost that orchestrates the silo, client, and Azurite-backed Azure Storage resources:
```dotnetcli
dotnet new install Microsoft.Orleans.Templates
dotnet new orleans --name OrleansHelloWorld --output OrleansHelloWorld
templates/Microsoft.Orleans.Templates/README.md:35
orleans template uses Azurite-backed Azure Storage, but it doesn’t mention that running the generated AppHost requires a container runtime so Aspire can start Azurite (as noted in the per-template README). Adding that requirement here would help avoid a confusing first-run failure.The `orleans` template uses the Aspire Orleans integration to orchestrate the silo, client, and Azurite-backed Azure Table clustering and Azure Blob grain storage. The `orleans-web` template uses localhost clustering for a one-node local development host. See the [Orleans hosting documentation](https://dotnet.github.io/orleans/docs/host/configuration-guide/) for production configuration guidance.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Co-authored-by: Copilot App <[email protected]> Copilot-Session: 10149d85-00f6-400c-a059-21cf9592e5d6
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Previously missed (1) — in code that hasn't changed since the last review.
templates/Microsoft.Orleans.Templates/templates/orleans/Directory.Packages.props:15
--framework net8.0 (see .template.config/template.json), but Directory.Packages.props hard-pins Microsoft.Extensions.Hosting to 10.0.9. That makes the generated output’s package graph independent of the selected target framework and can break restores/compatibility when targeting .NET 8.Consider pinning Microsoft.Extensions.Hosting to an 8.x version which is compatible with both net8.0 and net10.0 (as used elsewhere in this repo), or making the version conditional on the framework template parameter.
<PackageVersion Include="Aspire.Hosting.Azure.Storage" Version="$(AspireVersion)" />
<PackageVersion Include="Aspire.Hosting.Orleans" Version="$(AspireVersion)" />
<PackageVersion Include="Microsoft.Extensions.Hosting" Version="10.0.9" />
<PackageVersion Include="Microsoft.Orleans.Client" Version="$(OrleansVersion)" />
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
Add Orleans template for aspnetcore Orleans Recipes and Templates
There was an error while loading. Please reload this page.