1 write to Name
Aspire.Dashboard (1)
Model\ResourceViewModel.cs (1)
330
Name
= name;
35 references to Name
Aspire.Dashboard (26)
Components\Controls\ApplicationSummary.razor.cs (2)
644
(menuResource, command) => DashboardCommandExecutor.IsExecuting(menuResource.Name, command.
Name
),
667
if (string.Equals(command.
Name
, CommandViewModel.SetParameterCommand, StringComparisons.CommandName))
Components\Controls\MissingParametersPanel.razor.cs (1)
105
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\ResourceActions.razor.cs (2)
87
if (string.Equals(command.
Name
, CommandViewModel.SetParameterCommand, StringComparisons.CommandName))
94
return 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 (3)
1341
DashboardClient.IsReadOnly || command.State == CommandViewModelState.Disabled || DashboardCommandExecutor.IsExecuting(resource.Name, command.
Name
);
1366
(r, command) => DashboardCommandExecutor.IsExecuting(r.Name, command.
Name
),
1398
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 (1)
716
(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)
653
(resource, command) => DashboardCommandExecutor.IsExecuting(resource.Name, command.
Name
),
Components\Pages\ResourceOverview.Details.cs (1)
113
["IsCommandExecuting"] = (Func<ResourceViewModel, CommandViewModel, bool>)((r, command) => DashboardCommandExecutor.IsExecuting(r.Name, command.
Name
)),
Components\Pages\Resources.razor.cs (1)
748
(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 (2)
48
var executingCommandKey = (resource.Name, command.
Name
);
61
{ TelemetryPropertyKeys.CommandName, new AspireTelemetryProperty(TelemetryPropertyValues.GetCommandNameTelemetryValue(command.
Name
)) },
Model\TelemetryExportService.cs (2)
773
.OrderBy(c => c.
Name
)
775
c => c.
Name
,
ServiceClient\DashboardClient.cs (2)
1098
CommandName = command.
Name
,
1147
_logger.LogError(ex, "Error executing command \"{CommandName}\" on resource \"{ResourceName}\": {StatusCode}", command.
Name
, resourceName, ex.StatusCode);
Aspire.Dashboard.Components.Tests (4)
Controls\ResourceDetailsTests.cs (2)
837
Assert.Equal(CommandViewModel.SetParameterCommand, capturedCommand!.
Name
);
875
currentResource.Name == resource.Name && command.
Name
== CommandViewModel.SetParameterCommand);
Controls\TerminalDisconnectedBannerTests.cs (1)
70
executions.Enqueue((name, command.
Name
));
Layout\ResourcesLayoutTests.cs (1)
550
executed.Add((resource, command.
Name
));
Aspire.Dashboard.Tests (5)
Model\DashboardCommandExecutorTests.cs (4)
41
Assert.False(executor.IsExecuting(resource.Name, command.
Name
));
54
Assert.False(executor.IsExecuting(resource.Name, command.
Name
));
85
ActivityStopped = _ => isExecutingAtActivityStop = executor.IsExecuting(resource.Name, command.
Name
)
94
Assert.False(executor.IsExecuting(resource.Name, command.
Name
));
Model\SqliteResourceRepositoryTests.cs (1)
483
Assert.Equal("configure", command.
Name
);