9 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.Playwright.Tests (2)
tests\Aspire.Dashboard.Tests\Shared\MockDashboardClient.cs (1)
51
public bool
IsEnabled
=> true;
tests\Shared\TestDashboardClient.cs (1)
34
public bool
IsEnabled
{ get; }
Aspire.Dashboard.Tests (4)
ResourceOutgoingPeerResolverTests.cs (1)
685
public bool
IsEnabled
=> true;
Shared\MockDashboardClient.cs (1)
51
public bool
IsEnabled
=> true;
Terminal\DefaultTerminalConnectionResolverTests.cs (1)
185
public bool
IsEnabled
=> false;
tests\Shared\TestDashboardClient.cs (1)
34
public bool
IsEnabled
{ get; }
78 references to IsEnabled
Aspire.Dashboard (77)
Components\Controls\ApplicationName.razor.cs (1)
34
if (DashboardClient.
IsEnabled
&& !DashboardClient.WhenConnected.IsCompletedSuccessfully)
Components\Controls\ApplicationSummary.razor.cs (2)
148
if (!DashboardClient.
IsEnabled
)
240
if (!isFirstSet && DashboardClient.
IsEnabled
)
Components\Controls\PropertyValues\ResourceNameButtonValue.razor.cs (1)
43
if (DashboardClient.
IsEnabled
)
Components\Controls\TerminalDisconnectedBanner.razor.cs (1)
105
if (ResourceName is not null && DashboardClient.
IsEnabled
)
Components\Dialogs\AIAgentsHelp.razor.cs (1)
38
private string Description => DashboardClient.
IsEnabled
Components\Dialogs\HelpDialog.razor.cs (1)
73
private bool IsGameAvailable => DashboardClient.
IsEnabled
&& ViewPreferences.IsGraphEnabled;
Components\Dialogs\ManageDataDialog.razor.cs (2)
83
if (DashboardClient.
IsEnabled
)
559
if (DashboardClient.
IsEnabled
)
Components\Dialogs\SettingsDialog.razor.cs (1)
170
IsAppHost = DashboardClient.
IsEnabled
,
Components\Interactions\InteractionsProvider.cs (1)
103
if (!DashboardClient.
IsEnabled
)
Components\Layout\MainLayout.razor.cs (11)
118
private bool IsTerminalDockEnabled => !_isSwitchingRuns && DashboardClient.
IsEnabled
&& !DashboardClient.IsReadOnly;
164
if (!DashboardClient.
IsEnabled
)
250
var feedback = new DashboardFeedback { IsAppHost = DashboardClient.
IsEnabled
};
530
if (DashboardClient.
IsEnabled
)
588
if (!DashboardClient.
IsEnabled
)
617
case AspireKeyboardShortcut.GoToResources when DashboardClient.
IsEnabled
:
620
case AspireKeyboardShortcut.GoToConsoleLogs when DashboardClient.
IsEnabled
:
632
case AspireKeyboardShortcut.GoToTerminals when DashboardClient.
IsEnabled
&& _navigationAvailability.HasResourceTerminals:
635
case AspireKeyboardShortcut.GoToParameters when DashboardClient.
IsEnabled
:
638
case AspireKeyboardShortcut.GoToGraph when DashboardClient.
IsEnabled
&& Options.CurrentValue.UI.DisableResourceGraph != true:
642
case AspireKeyboardShortcut.GoToExtensions when DashboardClient.
IsEnabled
:
Components\Layout\MobileNavMenu.razor.cs (1)
144
if (DashboardClient.
IsEnabled
)
Components\Layout\NavigationAvailabilityProvider.cs (1)
40
if (DashboardClient.
IsEnabled
&& !DashboardClient.IsReadOnly)
Components\Layout\ResourceServiceConnectionProvider.cs (2)
24
if (!DashboardClient.
IsEnabled
)
34
if (firstRender && DashboardClient.
IsEnabled
)
Components\Layout\ResourcesLayout.razor.cs (20)
210
internal bool IsTelemetryPane => !DashboardClient.
IsEnabled
|| PaneState.Mode == ResourcePaneMode.Telemetry;
312
if (DashboardClient.
IsEnabled
&& paneModeResult.Success && Enum.TryParse<ResourcePaneMode>(paneModeResult.Value, ignoreCase: true, out var storedPaneMode) && storedPaneMode != ResourcePaneMode.Telemetry)
356
if (DashboardClient.
IsEnabled
)
410
if (!DashboardClient.
IsEnabled
)
721
if (!ViewportInformation.IsDesktop || !DashboardClient.
IsEnabled
||
828
_pendingLandingRedirect = DashboardClient.
IsEnabled
860
if (tab == ResourceTab.Metrics && _selectedResourceNames.Count == 0 && !DashboardClient.
IsEnabled
&&
869
internal string AddPaneToUrl(string url) => DashboardClient.
IsEnabled
&& IsTelemetryPane ? DashboardUrls.AddTelemetryPane(url) : url;
993
if (!DashboardClient.
IsEnabled
)
1172
if (DashboardClient.
IsEnabled
&& _selectedItems.Any(i => i.TelemetryOnly is not null) &&
1384
(!DashboardClient.
IsEnabled
|| _showTelemetryOnlyResources || IsSelected(r.Name)) &&
2055
DashboardClient.
IsEnabled
&& !DashboardClient.IsReadOnly && ResourceSelectHelpers.HasUsableTerminal(resource);
2388
Loc[DashboardClient.
IsEnabled
? nameof(Resources.Layout.ResourceHeaderAllResources) : nameof(Resources.Layout.TelemetryHeaderAllSources)];
2478
return DashboardClient.
IsEnabled
&&
2737
NavigationManager.NavigateTo(DashboardClient.
IsEnabled
&& CurrentTab == ResourceTab.Overview ? DashboardUrls.ResourceListUrl() : GetSelectionUrl([]));
2756
if (DashboardClient.
IsEnabled
&& _showTelemetryOnlyResources)
2780
if (!DashboardClient.
IsEnabled
)
2798
if (DashboardClient.
IsEnabled
&& _grouping != ResourcePaneGrouping.None)
3007
isVisible: DashboardClient.
IsEnabled
&& !isTelemetryOnly);
3009
isVisible: DashboardClient.
IsEnabled
&& !isTelemetryOnly);
Components\Layout\TerminalDock.razor.cs (2)
121
if (DashboardClient.
IsEnabled
&& !DashboardClient.IsReadOnly)
139
if (_disposed || !DashboardClient.
IsEnabled
|| DashboardClient.IsReadOnly)
Components\Legacy\Dialogs\LegacyAIAgentsDialog.razor.cs (1)
35
private string Description => DashboardClient.
IsEnabled
Components\Legacy\Layout\LegacyMainLayout.razor.cs (6)
111
private bool IsTerminalDockEnabled => !_isSwitchingRuns && DashboardClient.
IsEnabled
&& !DashboardClient.IsReadOnly;
154
if (!DashboardClient.
IsEnabled
&&
516
(DashboardClient.
IsEnabled
, _hasResourceTerminals) switch
533
case AspireKeyboardShortcut.GoToResources when DashboardClient.
IsEnabled
:
536
case AspireKeyboardShortcut.GoToConsoleLogs when DashboardClient.
IsEnabled
:
548
case AspireKeyboardShortcut.GoToTerminals when DashboardClient.
IsEnabled
&& _hasResourceTerminals:
Components\Legacy\Layout\LegacyMobileNavMenu.razor.cs (2)
141
if (DashboardClient.
IsEnabled
)
185
if (DashboardClient.
IsEnabled
&& HasResourceTerminals)
Components\Legacy\Layout\ResourceTerminalsAvailabilityProvider.cs (1)
28
if (DashboardClient.
IsEnabled
&& !DashboardClient.IsReadOnly)
Components\Legacy\Pages\ConsoleLogs.razor.cs (1)
238
if (!DashboardClient.
IsEnabled
)
Components\Legacy\Pages\Resources.razor.cs (1)
188
if (!DashboardClient.
IsEnabled
)
Components\Legacy\Pages\Terminals.razor.cs (1)
83
if (!DashboardClient.
IsEnabled
|| DashboardClient.IsReadOnly)
Components\Legacy\Pages\TerminalWindow.razor.cs (1)
99
if (resourceName is not null && DashboardClient.
IsEnabled
)
Components\Pages\ConsoleLogs.razor.cs (1)
260
if (!DashboardClient.
IsEnabled
)
Components\Pages\Home.razor.cs (2)
41
var url = legacyUrl ?? (DashboardClient.
IsEnabled
? DashboardUrls.ResourceListUrl() : DashboardUrls.StructuredLogsUrl());
46
HistoryEntryState = legacyUrl is null && DashboardClient.
IsEnabled
? Aspire.Dashboard.Components.Layout.ResourcesLayout.ResourceListHomeHistoryEntryState : null
Components\Pages\Resources.razor.cs (1)
186
if (!DashboardClient.
IsEnabled
)
Components\Pages\Terminals.razor.cs (1)
86
if (!DashboardClient.
IsEnabled
|| DashboardClient.IsReadOnly)
Components\Pages\TerminalWindow.razor.cs (1)
99
if (resourceName is not null && DashboardClient.
IsEnabled
)
DashboardWebApplication.cs (1)
558
if (!client.
IsEnabled
)
Model\ConsoleLogsFetcher.cs (2)
17
public bool IsEnabled => _dashboardClient.
IsEnabled
;
64
if (!_dashboardClient.
IsEnabled
)
Model\ResourceMenuBuilder.cs (1)
163
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)
1534
Assert.True(selectedClient.
IsEnabled
);