20 references to DashboardClient
Aspire.Dashboard (20)
Components\Controls\ApplicationName.razor.cs (6)
22
public required IDashboardClient
DashboardClient
{ get; init; }
29
if (
DashboardClient
.IsEnabled && !
DashboardClient
.WhenConnected.IsCompletedSuccessfully)
32
await
DashboardClient
.WhenConnected.WaitAsync(_disposalCts.Token);
37
_applicationName = string.Format(CultureInfo.InvariantCulture, Loc[ResourceName],
DashboardClient
.ApplicationName);
41
_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; }
130
if (!
DashboardClient
.IsEnabled)
135
var (snapshot, subscription) = await
DashboardClient
.SubscribeResourcesAsync(_resourceSubscriptionToken);
404
var subscription =
DashboardClient
.SubscribeConsoleLogs(newConsoleLogsSubscription.Name, newConsoleLogsSubscription.CancellationToken);
Components\Pages\Resources.razor.cs (3)
33
public required IDashboardClient
DashboardClient
{ get; init; }
163
if (
DashboardClient
.IsEnabled)
186
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.");