Skip to content

Commit a94d410

Browse files
Clarify Orleans silo shutdown behavior with respect to IHost lifetime (#47662)
* Clarify Orleans silo shutdown behavior with respect to IHost lifetime Added a sentence explaining that Orleans follows the .NET Generic Host lifetime model and shuts down when the IHost does, regardless of the specific lifetime configuration. * Update Style Co-authored-by: Reuben Bond <[email protected]> --------- Co-authored-by: Reuben Bond <[email protected]>
1 parent e18e60d commit a94d410

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/orleans/host/configuration-guide/shutting-down-orleans.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ await Host.CreateDefaultBuilder(args)
2828

2929
The preceding code relies on the [Microsoft.Extensions.Hosting](https://www.nuget.org/packages/Microsoft.Extensions.Hosting) and [Microsoft.Orleans.Server](https://www.nuget.org/packages/Microsoft.Orleans.Server) NuGet packages. The <xref:Microsoft.Extensions.Hosting.HostingHostBuilderExtensions.RunConsoleAsync%2A> extension method extends <xref:Microsoft.Extensions.Hosting.IHostBuilder> to help manage the app's lifetime accordingly, listening for process termination signals and shutting down the silo gracefully.
3030

31-
Internally, the `RunConsoleAsync` method calls <xref:Microsoft.Extensions.Hosting.HostingHostBuilderExtensions.UseConsoleLifetime%2A>, which ensures the app shuts down gracefully. For more information on host shutdown, see [.NET Generic Host: Host shutdown](../../../core/extensions/generic-host.md#host-shutdown).
31+
Internally, the `RunConsoleAsync` method calls <xref:Microsoft.Extensions.Hosting.HostingHostBuilderExtensions.UseConsoleLifetime%2A>, which ensures the app shuts down gracefully. Orleans is hosted within the .NET Generic Host, so it shuts down when the host application does, regardless of the lifetime model used.
32+
33+
For more information on host shutdown, see [.NET Generic Host: Host shutdown](../../../core/extensions/generic-host.md#host-shutdown).
3234

3335
## See also
3436

0 commit comments

Comments
 (0)