141 references to WithCommand
Aspire.Hosting (3)
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 (2)
3583
builder.
WithCommand
(
4099
builder.
WithCommand
(commandName, displayName,
Aspire.Hosting.Azure (1)
AzureEnvironmentResourceExtensions.cs (1)
51
resourceBuilder.
WithCommand
(
Aspire.Hosting.Azure.Kusto (2)
AzureKustoBuilderExtensions.cs (2)
358
resourceBuilder.
WithCommand
(
368
resourceBuilder.
WithCommand
(
Aspire.Hosting.Blazor (2)
BrowserDebuggerHelper.cs (2)
134
commandTarget.
WithCommand
(
231
commandTarget.
WithCommand
(
Aspire.Hosting.Browsers (3)
BrowserLogsBuilderExtensions.cs (3)
151
.
WithCommand
(
198
.
WithCommand
(
232
.
WithCommand
(
Aspire.Hosting.Browsers.Tests (3)
src\Aspire.Hosting.Browsers\BrowserLogsBuilderExtensions.cs (3)
151
.
WithCommand
(
198
.
WithCommand
(
232
.
WithCommand
(
Aspire.Hosting.DevTunnels (1)
DevTunnelResourceBuilderExtensions.cs (1)
634
.
WithCommand
(
Aspire.Hosting.EntityFrameworkCore (7)
EFResourceBuilderExtensions.cs (7)
737
toolBuilder.
WithCommand
(
772
migrationBuilder.
WithCommand
(
788
migrationBuilder.
WithCommand
(
805
migrationBuilder.
WithCommand
(
822
migrationBuilder.
WithCommand
(
845
migrationBuilder.
WithCommand
(
857
migrationBuilder.
WithCommand
(
Aspire.Hosting.Foundry (1)
PromptAgent\PromptAgentBuilderExtensions.cs (1)
77
agentBuilder.
WithCommand
(
Aspire.Hosting.MongoDB (1)
src\Shared\ContainerReplCommand.cs (1)
24
return builder.
WithCommand
("repl", "REPL", async context =>
Aspire.Hosting.MySql (1)
src\Shared\ContainerReplCommand.cs (1)
24
return builder.
WithCommand
("repl", "REPL", async context =>
Aspire.Hosting.PostgreSQL (1)
src\Shared\ContainerReplCommand.cs (1)
24
return builder.
WithCommand
("repl", "REPL", async context =>
Aspire.Hosting.Redis (1)
src\Shared\ContainerReplCommand.cs (1)
24
return builder.
WithCommand
("repl", "REPL", async context =>
Aspire.Hosting.SqlServer (1)
src\Shared\ContainerReplCommand.cs (1)
24
return builder.
WithCommand
("repl", "REPL", async context =>
Aspire.Hosting.Tests (56)
Backchannel\AuxiliaryBackchannelRpcTargetTests.cs (7)
2300
custom.
WithCommand
(
2365
custom.
WithCommand
(
2416
custom.
WithCommand
(
2477
custom.
WithCommand
(
2547
custom.
WithCommand
(
2622
custom.
WithCommand
(
2670
custom.
WithCommand
(
Dashboard\DashboardServiceTests.cs (7)
164
builder.
WithCommand
(
191
builder.
WithCommand
(
200
builder.
WithCommand
(
289
builder.
WithCommand
(
352
builder.
WithCommand
(
409
builder.
WithCommand
(
884
builder.
WithCommand
(
ResourceCommandServiceTests.cs (42)
144
custom.
WithCommand
(name: "mycommand",
182
custom.
WithCommand
(name: "mycommand",
222
custom.
WithCommand
(name: "mycommand",
257
custom.
WithCommand
(name: "mycommand",
287
custom.
WithCommand
(name: "mycommand",
319
custom.
WithCommand
(name: "mycommand",
368
custom.
WithCommand
(name: "mycommand",
394
custom.
WithCommand
(
416
custom.
WithCommand
(name: KnownResourceCommands.StartCommand,
437
custom.
WithCommand
(name: KnownResourceCommands.StopCommand,
459
custom.
WithCommand
(name: currentCommandName,
477
custom.
WithCommand
(name: "generate-token",
498
custom.
WithCommand
(name: "mycommand",
518
custom.
WithCommand
(name: "mycommand",
576
custom.
WithCommand
(name: "mycommand",
617
custom.
WithCommand
(name: "mycommand",
657
custom.
WithCommand
(name: "mycommand",
703
custom.
WithCommand
(name: "mycommand",
748
custom.
WithCommand
(name: "mycommand",
779
custom.
WithCommand
(name: "mycommand",
810
custom.
WithCommand
(name: "mycommand",
842
custom.
WithCommand
(name: "mycommand",
883
custom.
WithCommand
(name: "mycommand",
916
custom.
WithCommand
(name: "mycommand",
941
custom.
WithCommand
(name: "mycommand",
984
custom.
WithCommand
(name: "mycommand",
1057
custom.
WithCommand
(name: "mycommand",
1149
custom.
WithCommand
(name: "mycommand",
1219
custom.
WithCommand
(name: "mycommand",
1269
custom.
WithCommand
(name: "mycommand",
1346
custom.
WithCommand
(
1428
custom.
WithCommand
(
1500
custom.
WithCommand
(name: "mycommand",
1546
custom.
WithCommand
(name: "mycommand",
1576
custom.
WithCommand
(name: "mycommand",
1612
custom.
WithCommand
(name: "mycommand",
1668
custom.
WithCommand
(name: "mycommand",
1720
custom.
WithCommand
(name: "generate-token",
1936
custom.
WithCommand
(name: "cancelable-command",
1981
custom.
WithCommand
(name: "cancelable-command",
2032
custom.
WithCommand
(name: "progress-command",
2064
custom.
WithCommand
(name: "success-command",
Aspire.Hosting.Valkey (1)
src\Shared\ContainerReplCommand.cs (1)
24
return builder.
WithCommand
("repl", "REPL", async context =>
DotnetTool.AppHost (1)
AppHost.cs (1)
96
.
WithCommand
("reset", "Reset Packages", ctx =>
ParameterEndToEnd.AppHost (3)
AppHost.cs (3)
115
parameter.
WithCommand
(
126
parameter.
WithCommand
(
136
parameter.
WithCommand
(
Stress.AppHost (44)
CommandResources.cs (20)
39
iconCommands.
WithCommand
(
50
iconCommands.
WithCommand
(
63
iconCommands.
WithCommand
(
74
iconCommands.
WithCommand
(
86
iconCommands.
WithCommand
(
98
iconCommands.
WithCommand
(
106
iconCommands.
WithCommand
(
119
argumentCommands.
WithCommand
(
169
argumentCommands.
WithCommand
(
254
argumentCommands.
WithCommand
(
340
argumentCommands.
WithCommand
(
367
argumentCommands.
WithCommand
(
1175
.
WithCommand
(
1183
.
WithCommand
(
1192
.
WithCommand
(
1204
.
WithCommand
(
1226
.
WithCommand
(
1246
.
WithCommand
(
1256
.
WithCommand
(
1264
.
WithCommand
(
InteractionCommands.cs (24)
18
.
WithCommand
("confirmation-interaction", "Confirmation interactions", executeCommand: async commandContext =>
34
.
WithCommand
("messagebar-interaction", "Messagebar interactions", executeCommand: async commandContext =>
48
.
WithCommand
("code-block-interaction", "Code block interactions", executeCommand: commandContext =>
63
.
WithCommand
("html-interaction", "HTML interactions", executeCommand: async commandContext =>
84
.
WithCommand
("long-content-interaction", "Long content interactions", executeCommand: async commandContext =>
121
.
WithCommand
("value-interaction", "Value interactions", executeCommand: async commandContext =>
156
.
WithCommand
("choice-no-placeholder", "Choice with no placeholder", executeCommand: async commandContext =>
208
.
WithCommand
("input-interaction", "Input interactions", executeCommand: async commandContext =>
294
.
WithCommand
("disabled-input-interaction", "Disabled input interactions", executeCommand: async commandContext =>
375
.
WithCommand
("choice-interaction", "Choice interactions", executeCommand: async commandContext =>
514
.
WithCommand
("dynamic-error", "Dynamic error", executeCommand: async commandContext =>
620
.
WithCommand
("dismiss-interaction", "Dismiss interaction tests", executeCommand: commandContext =>
661
.
WithCommand
("many-values", "Many values", executeCommand: async commandContext =>
696
.
WithCommand
("azure-provisioning-simulation", "Azure provisioning simulation", executeCommand: async commandContext =>
892
.
WithCommand
("progress-with-work", "Progress with work callback", executeCommand: async commandContext =>
921
.
WithCommand
("progress-minimal", "Progress with only message", executeCommand: async commandContext =>
947
.
WithCommand
("progress-no-cancel", "Progress without cancel button", executeCommand: async commandContext =>
972
.
WithCommand
("progress-with-title", "Progress with title", executeCommand: async commandContext =>
995
.
WithCommand
("progress-no-title", "Progress without title", executeCommand: async commandContext =>
1018
.
WithCommand
("progress-markdown-message", "Progress with markdown", executeCommand: async commandContext =>
1043
.
WithCommand
("progress-run-forever", "Progress run forever", executeCommand: async commandContext =>
1068
.
WithCommand
("auto-progress", "Auto progress (CommandProgressOptions)", executeCommand: async commandContext =>
1084
.
WithCommand
("import-config", "Import configuration", executeCommand: async commandContext =>
1129
.
WithCommand
("upload-certificates", "Upload certificates", executeCommand: async commandContext =>
Terminals.AppHost (8)
TerminalInteractionCommands.cs (8)
44
return resource.
WithCommand
(
81
return container.
WithCommand
(
102
return container.
WithCommand
(
165
return container.
WithCommand
(
212
return container.
WithCommand
(
244
return container.
WithCommand
(
285
return resource.
WithCommand
(
401
return resource.
WithCommand
(