32 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)
2460
builder.
WithCommand
(commandName, displayName,
Aspire.Hosting.Azure.Kusto (2)
AzureKustoBuilderExtensions.cs (2)
320
resourceBuilder.
WithCommand
(
330
resourceBuilder.
WithCommand
(
Aspire.Hosting.Tests (11)
Dashboard\DashboardServiceTests.cs (2)
154
builder.
WithCommand
(
477
builder.
WithCommand
(
ResourceCommandServiceTests.cs (9)
86
custom.
WithCommand
(name: "mycommand",
124
custom.
WithCommand
(name: "mycommand",
164
custom.
WithCommand
(name: "mycommand",
199
custom.
WithCommand
(name: "mycommand",
229
custom.
WithCommand
(name: "mycommand",
261
custom.
WithCommand
(name: "mycommand",
310
custom.
WithCommand
(name: "mycommand",
336
custom.
WithCommand
(name: KnownResourceCommands.StartCommand,
357
custom.
WithCommand
(name: KnownResourceCommands.StopCommand,
DotnetTool.AppHost (1)
AppHost.cs (1)
96
.
WithCommand
("reset", "Reset Packages", ctx =>
Stress.AppHost (16)
InteractionCommands.cs (11)
16
.
WithCommand
("confirmation-interaction", "Confirmation interactions", executeCommand: async commandContext =>
32
.
WithCommand
("messagebar-interaction", "Messagebar interactions", executeCommand: async commandContext =>
46
.
WithCommand
("html-interaction", "HTML interactions", executeCommand: async commandContext =>
67
.
WithCommand
("long-content-interaction", "Long content interactions", executeCommand: async commandContext =>
104
.
WithCommand
("value-interaction", "Value interactions", executeCommand: async commandContext =>
139
.
WithCommand
("choice-no-placeholder", "Choice with no placeholder", executeCommand: async commandContext =>
191
.
WithCommand
("input-interaction", "Input interactions", executeCommand: async commandContext =>
277
.
WithCommand
("choice-interaction", "Choice interactions", executeCommand: async commandContext =>
416
.
WithCommand
("dynamic-error", "Dynamic error", executeCommand: async commandContext =>
515
.
WithCommand
("dismiss-interaction", "Dismiss interaction tests", executeCommand: commandContext =>
556
.
WithCommand
("many-values", "Many values", executeCommand: async commandContext =>
Program.cs (5)
47
serviceBuilder.
WithCommand
(
58
serviceBuilder.
WithCommand
(
102
.
WithCommand
(
110
.
WithCommand
(
119
.
WithCommand
(