File: ResourceService\DashboardClientStatus.cs
Web Access
Project: src\src\Aspire.Dashboard\Aspire.Dashboard.csproj (Aspire.Dashboard)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
 
using Aspire.Dashboard.Configuration;
using Microsoft.Extensions.Options;
 
namespace Aspire.Dashboard.Model;
 
internal sealed class DashboardClientStatus(IOptions<DashboardOptions> dashboardOptions) : IDashboardClientStatus
{
    public bool IsEnabled => dashboardOptions.Value.ResourceServiceClient.GetUri() is not null;
}