27 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)
2174
builder.
WithCommand
(commandName, displayName,
Aspire.Hosting.Tests (9)
Dashboard\DashboardServiceTests.cs (2)
153
builder.
WithCommand
(
476
builder.
WithCommand
(
ResourceCommandServiceTests.cs (7)
86
custom.
WithCommand
(name: "mycommand",
122
.
WithCommand
(name: "mycommand",
166
.
WithCommand
(name: "mycommand",
198
custom.
WithCommand
(name: "mycommand",
225
.
WithCommand
(name: "mycommand",
254
.
WithCommand
(name: "mycommand",
304
custom.
WithCommand
(name: "mycommand",
Stress.AppHost (16)
InteractionCommands.cs (11)
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 =>
66
.
WithCommand
("long-content-interaction", "Long content interactions", executeCommand: async commandContext =>
103
.
WithCommand
("value-interaction", "Value interactions", executeCommand: async commandContext =>
138
.
WithCommand
("choice-no-placeholder", "Choice with no placeholder", executeCommand: async commandContext =>
190
.
WithCommand
("input-interaction", "Input interactions", executeCommand: async commandContext =>
276
.
WithCommand
("choice-interaction", "Choice interactions", executeCommand: async commandContext =>
415
.
WithCommand
("dynamic-error", "Dynamic error", executeCommand: async commandContext =>
514
.
WithCommand
("dismiss-interaction", "Dismiss interaction tests", executeCommand: commandContext =>
555
.
WithCommand
("many-values", "Many values", executeCommand: async commandContext =>
Program.cs (5)
47
serviceBuilder.
WithCommand
(
58
serviceBuilder.
WithCommand
(
101
.
WithCommand
(
109
.
WithCommand
(
118
.
WithCommand
(