20 references to DashboardClient
Aspire.Dashboard (20)
Components\Controls\ApplicationName.razor.cs (6)
25
public required IDashboardClient
DashboardClient
{ get; init; }
32
if (
DashboardClient
.IsEnabled && !
DashboardClient
.WhenConnected.IsCompletedSuccessfully)
35
await
DashboardClient
.WhenConnected.WaitAsync(_disposalCts.Token);
45
applicationName = string.Format(CultureInfo.InvariantCulture, Loc[ResourceName],
DashboardClient
.ApplicationName);
49
applicationName =
DashboardClient
.ApplicationName;
Components\Layout\MainLayout.razor.cs (1)
91
if (!
DashboardClient
.IsEnabled)
Components\Layout\MobileNavMenu.razor.cs (2)
21
public required IDashboardClient
DashboardClient
{ get; init; }
37
if (
DashboardClient
.IsEnabled)
Components\Pages\ConsoleLogs.razor.cs (4)
48
public required IDashboardClient
DashboardClient
{ get; init; }
179
if (!
DashboardClient
.IsEnabled)
184
var (snapshot, subscription) = await
DashboardClient
.SubscribeResourcesAsync(_resourceSubscriptionToken);
472
var subscription =
DashboardClient
.SubscribeConsoleLogs(newConsoleLogsSubscription.Name, newConsoleLogsSubscription.CancellationToken);
Components\Pages\Resources.razor.cs (3)
42
public required IDashboardClient
DashboardClient
{ get; init; }
191
if (
DashboardClient
.IsEnabled)
222
var (snapshot, subscription) = await
DashboardClient
.SubscribeResourcesAsync(_watchTaskCancellationTokenSource.Token);
DashboardWebApplication.cs (1)
233
builder.Services.TryAddSingleton<IDashboardClient,
DashboardClient
>();
ResourceService\DashboardClient.cs (3)
52
private readonly ILogger<
DashboardClient
> _logger;
83
_logger = loggerFactory.CreateLogger<
DashboardClient
>();
223
throw new InvalidOperationException($"{nameof(
DashboardClient
)} is disabled. Check the {nameof(IsEnabled)} property before calling this.");