137 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)
3563
builder.
WithCommand
(
4079
builder.
WithCommand
(commandName, displayName,
Aspire.Hosting.Azure (1)
AzureEnvironmentResourceExtensions.cs (1)
51
resourceBuilder.
WithCommand
(
Aspire.Hosting.Azure.Kusto (2)
AzureKustoBuilderExtensions.cs (2)
337
resourceBuilder.
WithCommand
(
347
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)
742
toolBuilder.
WithCommand
(
777
migrationBuilder.
WithCommand
(
793
migrationBuilder.
WithCommand
(
810
migrationBuilder.
WithCommand
(
827
migrationBuilder.
WithCommand
(
850
migrationBuilder.
WithCommand
(
862
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)
2253
custom.
WithCommand
(
2318
custom.
WithCommand
(
2369
custom.
WithCommand
(
2430
custom.
WithCommand
(
2500
custom.
WithCommand
(
2575
custom.
WithCommand
(
2623
custom.
WithCommand
(
Dashboard\DashboardServiceTests.cs (7)
164
builder.
WithCommand
(
191
builder.
WithCommand
(
200
builder.
WithCommand
(
289
builder.
WithCommand
(
352
builder.
WithCommand
(
409
builder.
WithCommand
(
842
builder.
WithCommand
(
ResourceCommandServiceTests.cs (42)
143
custom.
WithCommand
(name: "mycommand",
181
custom.
WithCommand
(name: "mycommand",
221
custom.
WithCommand
(name: "mycommand",
256
custom.
WithCommand
(name: "mycommand",
286
custom.
WithCommand
(name: "mycommand",
318
custom.
WithCommand
(name: "mycommand",
367
custom.
WithCommand
(name: "mycommand",
393
custom.
WithCommand
(
415
custom.
WithCommand
(name: KnownResourceCommands.StartCommand,
436
custom.
WithCommand
(name: KnownResourceCommands.StopCommand,
458
custom.
WithCommand
(name: currentCommandName,
476
custom.
WithCommand
(name: "generate-token",
497
custom.
WithCommand
(name: "mycommand",
517
custom.
WithCommand
(name: "mycommand",
575
custom.
WithCommand
(name: "mycommand",
616
custom.
WithCommand
(name: "mycommand",
656
custom.
WithCommand
(name: "mycommand",
702
custom.
WithCommand
(name: "mycommand",
747
custom.
WithCommand
(name: "mycommand",
778
custom.
WithCommand
(name: "mycommand",
809
custom.
WithCommand
(name: "mycommand",
841
custom.
WithCommand
(name: "mycommand",
882
custom.
WithCommand
(name: "mycommand",
915
custom.
WithCommand
(name: "mycommand",
940
custom.
WithCommand
(name: "mycommand",
983
custom.
WithCommand
(name: "mycommand",
1056
custom.
WithCommand
(name: "mycommand",
1148
custom.
WithCommand
(name: "mycommand",
1218
custom.
WithCommand
(name: "mycommand",
1268
custom.
WithCommand
(name: "mycommand",
1344
custom.
WithCommand
(
1426
custom.
WithCommand
(
1498
custom.
WithCommand
(name: "mycommand",
1544
custom.
WithCommand
(name: "mycommand",
1574
custom.
WithCommand
(name: "mycommand",
1610
custom.
WithCommand
(name: "mycommand",
1666
custom.
WithCommand
(name: "mycommand",
1718
custom.
WithCommand
(name: "generate-token",
1847
custom.
WithCommand
(name: "cancelable-command",
1892
custom.
WithCommand
(name: "cancelable-command",
1943
custom.
WithCommand
(name: "progress-command",
1975
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 =>
Stress.AppHost (43)
CommandResources.cs (20)
38
iconCommands.
WithCommand
(
49
iconCommands.
WithCommand
(
62
iconCommands.
WithCommand
(
73
iconCommands.
WithCommand
(
85
iconCommands.
WithCommand
(
97
iconCommands.
WithCommand
(
105
iconCommands.
WithCommand
(
118
argumentCommands.
WithCommand
(
168
argumentCommands.
WithCommand
(
253
argumentCommands.
WithCommand
(
339
argumentCommands.
WithCommand
(
366
argumentCommands.
WithCommand
(
1174
.
WithCommand
(
1182
.
WithCommand
(
1191
.
WithCommand
(
1203
.
WithCommand
(
1225
.
WithCommand
(
1245
.
WithCommand
(
1255
.
WithCommand
(
1263
.
WithCommand
(
InteractionCommands.cs (23)
17
.
WithCommand
("confirmation-interaction", "Confirmation interactions", executeCommand: async commandContext =>
33
.
WithCommand
("messagebar-interaction", "Messagebar interactions", executeCommand: async commandContext =>
47
.
WithCommand
("html-interaction", "HTML interactions", executeCommand: async commandContext =>
68
.
WithCommand
("long-content-interaction", "Long content interactions", executeCommand: async commandContext =>
105
.
WithCommand
("value-interaction", "Value interactions", executeCommand: async commandContext =>
140
.
WithCommand
("choice-no-placeholder", "Choice with no placeholder", executeCommand: async commandContext =>
192
.
WithCommand
("input-interaction", "Input interactions", executeCommand: async commandContext =>
278
.
WithCommand
("disabled-input-interaction", "Disabled input interactions", executeCommand: async commandContext =>
359
.
WithCommand
("choice-interaction", "Choice interactions", executeCommand: async commandContext =>
498
.
WithCommand
("dynamic-error", "Dynamic error", executeCommand: async commandContext =>
604
.
WithCommand
("dismiss-interaction", "Dismiss interaction tests", executeCommand: commandContext =>
645
.
WithCommand
("many-values", "Many values", executeCommand: async commandContext =>
680
.
WithCommand
("azure-provisioning-simulation", "Azure provisioning simulation", executeCommand: async commandContext =>
876
.
WithCommand
("progress-with-work", "Progress with work callback", executeCommand: async commandContext =>
905
.
WithCommand
("progress-minimal", "Progress with only message", executeCommand: async commandContext =>
931
.
WithCommand
("progress-no-cancel", "Progress without cancel button", executeCommand: async commandContext =>
956
.
WithCommand
("progress-with-title", "Progress with title", executeCommand: async commandContext =>
979
.
WithCommand
("progress-no-title", "Progress without title", executeCommand: async commandContext =>
1002
.
WithCommand
("progress-markdown-message", "Progress with markdown", executeCommand: async commandContext =>
1027
.
WithCommand
("progress-run-forever", "Progress run forever", executeCommand: async commandContext =>
1052
.
WithCommand
("auto-progress", "Auto progress (CommandProgressOptions)", executeCommand: async commandContext =>
1068
.
WithCommand
("import-config", "Import configuration", executeCommand: async commandContext =>
1113
.
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
(