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