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)
87
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)
47
public required IDashboardClient
DashboardClient
{ get; init; }
136
if (!
DashboardClient
.IsEnabled)
141
var (snapshot, subscription) = await
DashboardClient
.SubscribeResourcesAsync(_resourceSubscriptionToken);
413
var subscription =
DashboardClient
.SubscribeConsoleLogs(newConsoleLogsSubscription.Name, newConsoleLogsSubscription.CancellationToken);
Components\Pages\Resources.razor.cs (3)
34
public required IDashboardClient
DashboardClient
{ get; init; }
143
if (
DashboardClient
.IsEnabled)
168
var (snapshot, subscription) = await
DashboardClient
.SubscribeResourcesAsync(_watchTaskCancellationTokenSource.Token);
DashboardWebApplication.cs (1)
229
builder.Services.TryAddScoped<IDashboardClient,
DashboardClient
>();
ResourceService\DashboardClient.cs (3)
54
private readonly ILogger<
DashboardClient
> _logger;
89
_logger = loggerFactory.CreateLogger<
DashboardClient
>();
229
throw new InvalidOperationException($"{nameof(
DashboardClient
)} is disabled. Check the {nameof(IsEnabled)} property before calling this.");