1 write to Name
Aspire.Dashboard (1)
Model\ResourceViewModel.cs (1)
331Name = name;
50 references to Name
Aspire.Dashboard (37)
Components\Controls\ApplicationSummary.razor.cs (2)
652(menuResource, command) => DashboardCommandExecutor.IsExecuting(menuResource.Name, command.Name), 666(resource, command) => DashboardCommandExecutor.IsExecuting(resource.Name, command.Name),
Components\Controls\MissingParametersPanel.razor.cs (1)
119string.Equals(command.Name, CommandViewModel.SetParameterCommand, StringComparisons.CommandName) &&
Components\Controls\ParameterOverview.razor.cs (2)
83string.Equals(command.Name, CommandViewModel.SetParameterCommand, StringComparisons.CommandName) && 87string.Equals(command.Name, CommandViewModel.DeleteParameterCommand, StringComparisons.CommandName) &&
Components\Controls\TerminalDisconnectedBanner.razor.cs (3)
94c.Name is CommandViewModel.RestartCommand or CommandViewModel.StartCommand); 96.ThenBy(c => c.Name != CommandViewModel.RestartCommand).FirstOrDefault(); 101Resource is not { } resource || CommandExecutor.IsExecuting(resource.Name, command.Name);
Components\Layout\ResourcesLayout.razor.cs (9)
1872string.Equals(c.Name, CommandViewModel.SetParameterCommand, StringComparisons.CommandName) && 1886.SelectMany(name => resource.Commands.Where(c => c.Name == name && c.State != CommandViewModelState.Hidden)) 1888.DistinctBy(c => c.Name) 1898c.Name is not (CommandViewModel.StartCommand or CommandViewModel.StopCommand or CommandViewModel.RestartCommand)) 1959DashboardClient.IsReadOnly || command.State == CommandViewModelState.Disabled || DashboardCommandExecutor.IsExecuting(resource.Name, command.Name); 1964(resource, command) => DashboardCommandExecutor.IsExecuting(resource.Name, command.Name), 1990(r, command) => DashboardCommandExecutor.IsExecuting(r.Name, command.Name), 2041resource.Commands.FirstOrDefault(c => string.Equals(c.Name, commandName, StringComparisons.CommandName)) is not { } command) 2052string.Equals(command.Name, CommandViewModel.SetParameterCommand, StringComparisons.CommandName))
Components\Legacy\Pages\ConsoleLogs.razor.cs (1)
586(resource, command) => DashboardCommandExecutor.IsExecuting(resource.Name, command.Name),
Components\Legacy\Pages\Resources.razor.cs (2)
723(resource, command) => DashboardCommandExecutor.IsExecuting(resource.Name, command.Name), 738(resource, command) => DashboardCommandExecutor.IsExecuting(resource.Name, command.Name),
Components\Legacy\Pages\Terminals.razor.cs (1)
265(r, command) => DashboardCommandExecutor.IsExecuting(r.Name, command.Name),
Components\Pages\ConsoleLogs.razor.cs (1)
690(resource, command) => DashboardCommandExecutor.IsExecuting(resource.Name, command.Name),
Components\Pages\ResourceOverview.Details.cs (1)
125["IsCommandExecuting"] = (Func<ResourceViewModel, CommandViewModel, bool>)((r, command) => DashboardCommandExecutor.IsExecuting(r.Name, command.Name)),
Components\Pages\Resources.razor.cs (2)
779(resource, command) => DashboardCommandExecutor.IsExecuting(resource.Name, command.Name), 794(resource, command) => DashboardCommandExecutor.IsExecuting(resource.Name, command.Name),
Components\Pages\Terminals.razor.cs (1)
295(r, command) => DashboardCommandExecutor.IsExecuting(r.Name, command.Name),
Model\DashboardCommandExecutor.cs (4)
61var command = resource.Commands.FirstOrDefault(c => string.Equals(c.Name, commandName, StringComparisons.CommandName)); 64IsExecuting(resource.Name, command.Name)) 80var executingCommandKey = (resource.Name, command.Name); 93{ TelemetryPropertyKeys.CommandName, new AspireTelemetryProperty(TelemetryPropertyValues.GetCommandNameTelemetryValue(command.Name)) },
Model\ResourceMenuBuilder.cs (3)
315.GroupBy(pair => pair.Command.Name, StringComparers.CommandName) 325var item = CreateCommandMenuItem(command, () => ExecuteForGroupAsync(command.Name), isDisabled: eligibleCount == 0); 348var command = resource.Commands.FirstOrDefault(c => string.Equals(c.Name, commandName, StringComparisons.CommandName));
Model\TelemetryExportService.cs (2)
774.OrderBy(c => c.Name) 776c => c.Name,
ServiceClient\DashboardClient.cs (2)
1099CommandName = command.Name, 1148_logger.LogError(ex, "Error executing command \"{CommandName}\" on resource \"{ResourceName}\": {StatusCode}", command.Name, resourceName, ex.StatusCode);
Aspire.Dashboard.Components.Tests (7)
Controls\ResourceDetailsTests.cs (2)
835Assert.Equal(CommandViewModel.SetParameterCommand, capturedCommand!.Name); 873currentResource.Name == resource.Name && command.Name == CommandViewModel.SetParameterCommand);
Controls\TerminalDisconnectedBannerTests.cs (1)
70executions.Enqueue((name, command.Name));
Layout\ResourcesLayoutTests.cs (4)
650executed.Enqueue((resource, command.Name)); 1593executed.Add((resource, command.Name)); 1723executed.Add((resource, command.Name)); 1758executed.Add(command.Name);
Aspire.Dashboard.Tests (6)
Model\DashboardCommandExecutorTests.cs (5)
41Assert.False(executor.IsExecuting(resource.Name, command.Name)); 55executed.Add(command.Name); 149Assert.False(executor.IsExecuting(resource.Name, command.Name)); 180ActivityStopped = _ => isExecutingAtActivityStop = executor.IsExecuting(resource.Name, command.Name) 189Assert.False(executor.IsExecuting(resource.Name, command.Name));
Model\SqliteResourceRepositoryTests.cs (1)
484Assert.Equal("configure", command.Name);