17 references to WithCommand
Aspire.Hosting (2)
ApplicationModel\CommandOptions.cs (1)
7
/// Optional configuration for resource commands added with <see cref="ResourceBuilderExtensions.
WithCommand
{T}(Aspire.Hosting.ApplicationModel.IResourceBuilder{T}, string, string, Func{Aspire.Hosting.ApplicationModel.ExecuteCommandContext, Task{Aspire.Hosting.ApplicationModel.ExecuteCommandResult}}, Aspire.Hosting.ApplicationModel.CommandOptions?)"/>.
ResourceBuilderExtensions.cs (1)
1804
builder.
WithCommand
(commandName, displayName,
Aspire.Hosting.Tests (4)
Dashboard\DashboardServiceTests.cs (2)
153
builder.
WithCommand
(
425
builder.
WithCommand
(
ResourceCommandServiceTests.cs (2)
63
.
WithCommand
(name: "mycommand",
107
.
WithCommand
(name: "mycommand",
Stress.AppHost (11)
InteractionCommands.cs (6)
15
.
WithCommand
("confirmation-interaction", "Confirmation interactions", executeCommand: async commandContext =>
31
.
WithCommand
("messagebar-interaction", "Messagebar interactions", executeCommand: async commandContext =>
45
.
WithCommand
("html-interaction", "HTML interactions", executeCommand: async commandContext =>
63
.
WithCommand
("value-interaction", "Value interactions", executeCommand: async commandContext =>
98
.
WithCommand
("input-interaction", "Input interactions", executeCommand: async commandContext =>
168
.
WithCommand
("many-values", "Many values", executeCommand: async commandContext =>
Program.cs (5)
46
serviceBuilder.
WithCommand
(
57
serviceBuilder.
WithCommand
(
92
.
WithCommand
(
100
.
WithCommand
(
109
.
WithCommand
(