7 implementations of IsEnabled
Aspire.Dashboard (2)
ServiceClient\DashboardClient.cs (1)
286
public bool
IsEnabled
=> _state is not StateDisabled;
ServiceClient\SelectedDashboardClient.cs (1)
14
public bool
IsEnabled
=> IsReadOnly || currentClient.IsEnabled;
Aspire.Dashboard.Components.Tests (1)
tests\Shared\TestDashboardClient.cs (1)
34
public bool
IsEnabled
{ get; }
Aspire.Dashboard.Tests (4)
Integration\Playwright\Infrastructure\MockDashboardClient.cs (1)
43
public bool
IsEnabled
=> true;
ResourceOutgoingPeerResolverTests.cs (1)
685
public bool
IsEnabled
=> true;
Terminal\DefaultTerminalConnectionResolverTests.cs (1)
185
public bool
IsEnabled
=> false;
tests\Shared\TestDashboardClient.cs (1)
34
public bool
IsEnabled
{ get; }
33 references to IsEnabled
Aspire.Dashboard (32)
Components\Controls\ApplicationName.razor.cs (1)
34
if (DashboardClient.
IsEnabled
&& !DashboardClient.WhenConnected.IsCompletedSuccessfully)
Components\Controls\PropertyValues\ResourceNameButtonValue.razor.cs (1)
43
if (DashboardClient.
IsEnabled
)
Components\Dialogs\AIAgentsDialog.razor.cs (1)
35
private string Description => DashboardClient.
IsEnabled
Components\Dialogs\ManageDataDialog.razor.cs (2)
83
if (DashboardClient.
IsEnabled
)
556
if (DashboardClient.
IsEnabled
)
Components\Interactions\InteractionsProvider.cs (1)
96
if (!DashboardClient.
IsEnabled
)
Components\Layout\MainLayout.razor.cs (6)
108
private bool IsTerminalDockEnabled => !_isSwitchingRuns && DashboardClient.
IsEnabled
&& !DashboardClient.IsReadOnly;
149
if (!DashboardClient.
IsEnabled
)
482
(DashboardClient.
IsEnabled
, _hasResourceTerminals) switch
499
case AspireKeyboardShortcut.GoToResources when DashboardClient.
IsEnabled
:
502
case AspireKeyboardShortcut.GoToConsoleLogs when DashboardClient.
IsEnabled
:
514
case AspireKeyboardShortcut.GoToTerminals when DashboardClient.
IsEnabled
&& _hasResourceTerminals:
Components\Layout\MobileNavMenu.razor.cs (2)
141
if (DashboardClient.
IsEnabled
)
185
if (DashboardClient.
IsEnabled
&& HasResourceTerminals)
Components\Layout\ResourceServiceConnectionProvider.cs (2)
24
if (!DashboardClient.
IsEnabled
)
34
if (firstRender && DashboardClient.
IsEnabled
)
Components\Layout\ResourceTerminalsAvailabilityProvider.cs (1)
28
if (DashboardClient.
IsEnabled
&& !DashboardClient.IsReadOnly)
Components\Layout\TerminalDock.razor.cs (2)
107
if (DashboardClient.
IsEnabled
&& !DashboardClient.IsReadOnly)
125
if (_disposed || !DashboardClient.
IsEnabled
|| DashboardClient.IsReadOnly)
Components\Pages\ConsoleLogs.razor.cs (1)
238
if (!DashboardClient.
IsEnabled
)
Components\Pages\Resources.razor.cs (1)
186
if (!DashboardClient.
IsEnabled
)
Components\Pages\Terminals.razor.cs (1)
83
if (!DashboardClient.
IsEnabled
|| DashboardClient.IsReadOnly)
Components\Pages\TerminalWindow.razor.cs (1)
99
if (resourceName is not null && DashboardClient.
IsEnabled
)
DashboardWebApplication.cs (1)
531
if (!client.
IsEnabled
)
Model\ConsoleLogsFetcher.cs (2)
17
public bool IsEnabled => _dashboardClient.
IsEnabled
;
64
if (!_dashboardClient.
IsEnabled
)
Model\ResourceMenuBuilder.cs (1)
158
return _dashboardClient.
IsEnabled
&& !_dashboardClient.IsReadOnly && resource.HasTerminal();
Model\ResourceOutgoingPeerResolver.cs (1)
45
if (resourceRepository is IDashboardClient {
IsEnabled
: false })
Model\TelemetryExportService.cs (1)
61
if (_dashboardClient.
IsEnabled
&& hasResourceDetailsSelected)
ServiceClient\DashboardClient.cs (1)
40
/// will throw if <see cref="IDashboardClient.
IsEnabled
"/> is <see langword="false"/>. Callers should
ServiceClient\IDashboardClient.cs (1)
32
/// Users of <see cref="IDashboardClient"/> client should check <see cref="
IsEnabled
"/> before calling
Terminal\DefaultTerminalConnectionResolver.cs (1)
37
if (!_client.
IsEnabled
)
Aspire.Dashboard.Tests (1)
Model\DashboardDataSourceTests.cs (1)
1487
Assert.True(selectedClient.
IsEnabled
);