121 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)
3192
builder.
WithCommand
(
3708
builder.
WithCommand
(commandName, displayName,
Aspire.Hosting.Azure (1)
AzureEnvironmentResourceExtensions.cs (1)
54
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)
606
.
WithCommand
(
Aspire.Hosting.EntityFrameworkCore (7)
EFResourceBuilderExtensions.cs (7)
656
toolBuilder.
WithCommand
(
691
migrationBuilder.
WithCommand
(
707
migrationBuilder.
WithCommand
(
724
migrationBuilder.
WithCommand
(
741
migrationBuilder.
WithCommand
(
764
migrationBuilder.
WithCommand
(
776
migrationBuilder.
WithCommand
(
Aspire.Hosting.Foundry (1)
PromptAgent\PromptAgentBuilderExtensions.cs (1)
77
agentBuilder.
WithCommand
(
Aspire.Hosting.Tests (55)
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)
159
builder.
WithCommand
(
186
builder.
WithCommand
(
195
builder.
WithCommand
(
284
builder.
WithCommand
(
347
builder.
WithCommand
(
404
builder.
WithCommand
(
723
builder.
WithCommand
(
ResourceCommandServiceTests.cs (41)
142
custom.
WithCommand
(name: "mycommand",
180
custom.
WithCommand
(name: "mycommand",
220
custom.
WithCommand
(name: "mycommand",
255
custom.
WithCommand
(name: "mycommand",
285
custom.
WithCommand
(name: "mycommand",
317
custom.
WithCommand
(name: "mycommand",
366
custom.
WithCommand
(name: "mycommand",
392
custom.
WithCommand
(
414
custom.
WithCommand
(name: KnownResourceCommands.StartCommand,
435
custom.
WithCommand
(name: KnownResourceCommands.StopCommand,
457
custom.
WithCommand
(name: currentCommandName,
475
custom.
WithCommand
(name: "generate-token",
496
custom.
WithCommand
(name: "mycommand",
516
custom.
WithCommand
(name: "mycommand",
574
custom.
WithCommand
(name: "mycommand",
615
custom.
WithCommand
(name: "mycommand",
655
custom.
WithCommand
(name: "mycommand",
701
custom.
WithCommand
(name: "mycommand",
746
custom.
WithCommand
(name: "mycommand",
777
custom.
WithCommand
(name: "mycommand",
808
custom.
WithCommand
(name: "mycommand",
840
custom.
WithCommand
(name: "mycommand",
881
custom.
WithCommand
(name: "mycommand",
914
custom.
WithCommand
(name: "mycommand",
939
custom.
WithCommand
(name: "mycommand",
982
custom.
WithCommand
(name: "mycommand",
1055
custom.
WithCommand
(name: "mycommand",
1147
custom.
WithCommand
(name: "mycommand",
1217
custom.
WithCommand
(name: "mycommand",
1267
custom.
WithCommand
(name: "mycommand",
1323
custom.
WithCommand
(
1395
custom.
WithCommand
(name: "mycommand",
1441
custom.
WithCommand
(name: "mycommand",
1471
custom.
WithCommand
(name: "mycommand",
1507
custom.
WithCommand
(name: "mycommand",
1563
custom.
WithCommand
(name: "mycommand",
1615
custom.
WithCommand
(name: "generate-token",
1734
custom.
WithCommand
(name: "cancelable-command",
1779
custom.
WithCommand
(name: "cancelable-command",
1830
custom.
WithCommand
(name: "progress-command",
1862
custom.
WithCommand
(name: "success-command",
DotnetTool.AppHost (1)
AppHost.cs (1)
96
.
WithCommand
("reset", "Reset Packages", ctx =>
Stress.AppHost (42)
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
(
1097
.
WithCommand
(
1105
.
WithCommand
(
1114
.
WithCommand
(
1126
.
WithCommand
(
1148
.
WithCommand
(
1168
.
WithCommand
(
1178
.
WithCommand
(
1186
.
WithCommand
(
InteractionCommands.cs (22)
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
("choice-interaction", "Choice interactions", executeCommand: async commandContext =>
417
.
WithCommand
("dynamic-error", "Dynamic error", executeCommand: async commandContext =>
523
.
WithCommand
("dismiss-interaction", "Dismiss interaction tests", executeCommand: commandContext =>
564
.
WithCommand
("many-values", "Many values", executeCommand: async commandContext =>
599
.
WithCommand
("azure-provisioning-simulation", "Azure provisioning simulation", executeCommand: async commandContext =>
795
.
WithCommand
("progress-with-work", "Progress with work callback", executeCommand: async commandContext =>
824
.
WithCommand
("progress-minimal", "Progress with only message", executeCommand: async commandContext =>
850
.
WithCommand
("progress-no-cancel", "Progress without cancel button", executeCommand: async commandContext =>
875
.
WithCommand
("progress-with-title", "Progress with title", executeCommand: async commandContext =>
898
.
WithCommand
("progress-no-title", "Progress without title", executeCommand: async commandContext =>
921
.
WithCommand
("progress-markdown-message", "Progress with markdown", executeCommand: async commandContext =>
946
.
WithCommand
("progress-run-forever", "Progress run forever", executeCommand: async commandContext =>
971
.
WithCommand
("auto-progress", "Auto progress (CommandProgressOptions)", executeCommand: async commandContext =>
987
.
WithCommand
("import-config", "Import configuration", executeCommand: async commandContext =>
1032
.
WithCommand
("upload-certificates", "Upload certificates", executeCommand: async commandContext =>