Skip to content
Discussion options

You must be logged in to vote

In v10 the dashboard isn’t baked into the silo host any more - you have to pull in the Microsoft.OrleansDashboard package and wire it yourself. The easiest way to get the same enable/disable‑by‑port behaviour is to register the dashboard conditionally in Program.cs (or wherever you build the host) and use the DashboardOptions to set the port.

var builder = WebApplication.CreateBuilder(args);

// your usual Orleans config …
builder.Host.UseOrleans(silo => { /* … */ });

if (builder.Configuration.GetValue<bool>("Dashboard:Enabled"))
{
 // pulls in the dashboard middleware
 builder.Services.AddOrleansDashboard(options =>
 {
 options.Port = builder.Configuration.GetValue<int>("Dashboard:Port"); 

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@dewrightca
Comment options

Comment options

You must be logged in to vote
2 replies
@dewrightca
Comment options

@itxashancode
Comment options

Answer selected by dewrightca
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants