1 write to Name
Aspire.Dashboard (1)
Model\ResourceViewModel.cs (1)
331
Name
= 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)
119
string.Equals(command.
Name
, CommandViewModel.SetParameterCommand, StringComparisons.CommandName) &&
Components\Controls\ParameterOverview.razor.cs (2)
83
string.Equals(command.
Name
, CommandViewModel.SetParameterCommand, StringComparisons.CommandName) &&
87
string.Equals(command.
Name
, CommandViewModel.DeleteParameterCommand, StringComparisons.CommandName) &&
Components\Controls\TerminalDisconnectedBanner.razor.cs (3)
94
c.
Name
is CommandViewModel.RestartCommand or CommandViewModel.StartCommand);
96
.ThenBy(c => c.
Name
!= CommandViewModel.RestartCommand).FirstOrDefault();
101
Resource is not { } resource || CommandExecutor.IsExecuting(resource.Name, command.
Name
);
Components\Layout\ResourcesLayout.razor.cs (9)
1872
string.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
)
1898
c.
Name
is not (CommandViewModel.StartCommand or CommandViewModel.StopCommand or CommandViewModel.RestartCommand))
1959
DashboardClient.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
),
2041
resource.Commands.FirstOrDefault(c => string.Equals(c.
Name
, commandName, StringComparisons.CommandName)) is not { } command)
2052
string.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)
61
var command = resource.Commands.FirstOrDefault(c => string.Equals(c.
Name
, commandName, StringComparisons.CommandName));
64
IsExecuting(resource.Name, command.
Name
))
80
var 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)
325
var item = CreateCommandMenuItem(command, () => ExecuteForGroupAsync(command.
Name
), isDisabled: eligibleCount == 0);
348
var command = resource.Commands.FirstOrDefault(c => string.Equals(c.
Name
, commandName, StringComparisons.CommandName));
Model\TelemetryExportService.cs (2)
774
.OrderBy(c => c.
Name
)
776
c => c.
Name
,
ServiceClient\DashboardClient.cs (2)
1099
CommandName = 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)
835
Assert.Equal(CommandViewModel.SetParameterCommand, capturedCommand!.
Name
);
873
currentResource.Name == resource.Name && command.
Name
== CommandViewModel.SetParameterCommand);
Controls\TerminalDisconnectedBannerTests.cs (1)
70
executions.Enqueue((name, command.
Name
));
Layout\ResourcesLayoutTests.cs (4)
650
executed.Enqueue((resource, command.
Name
));
1593
executed.Add((resource, command.
Name
));
1723
executed.Add((resource, command.
Name
));
1758
executed.Add(command.
Name
);
Aspire.Dashboard.Tests (6)
Model\DashboardCommandExecutorTests.cs (5)
41
Assert.False(executor.IsExecuting(resource.Name, command.
Name
));
55
executed.Add(command.
Name
);
149
Assert.False(executor.IsExecuting(resource.Name, command.
Name
));
180
ActivityStopped = _ => isExecutingAtActivityStop = executor.IsExecuting(resource.Name, command.
Name
)
189
Assert.False(executor.IsExecuting(resource.Name, command.
Name
));
Model\SqliteResourceRepositoryTests.cs (1)
484
Assert.Equal("configure", command.
Name
);