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)
3563builder.WithCommand( 4079builder.WithCommand(commandName, displayName,
Aspire.Hosting.Azure (1)
AzureEnvironmentResourceExtensions.cs (1)
51resourceBuilder.WithCommand(
Aspire.Hosting.Azure.Kusto (2)
AzureKustoBuilderExtensions.cs (2)
337resourceBuilder.WithCommand( 347resourceBuilder.WithCommand(
Aspire.Hosting.Blazor (2)
BrowserDebuggerHelper.cs (2)
134commandTarget.WithCommand( 231commandTarget.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)
742toolBuilder.WithCommand( 777migrationBuilder.WithCommand( 793migrationBuilder.WithCommand( 810migrationBuilder.WithCommand( 827migrationBuilder.WithCommand( 850migrationBuilder.WithCommand( 862migrationBuilder.WithCommand(
Aspire.Hosting.Foundry (1)
PromptAgent\PromptAgentBuilderExtensions.cs (1)
77agentBuilder.WithCommand(
Aspire.Hosting.MongoDB (1)
src\Shared\ContainerReplCommand.cs (1)
24return builder.WithCommand("repl", "REPL", async context =>
Aspire.Hosting.MySql (1)
src\Shared\ContainerReplCommand.cs (1)
24return builder.WithCommand("repl", "REPL", async context =>
Aspire.Hosting.PostgreSQL (1)
src\Shared\ContainerReplCommand.cs (1)
24return builder.WithCommand("repl", "REPL", async context =>
Aspire.Hosting.Redis (1)
src\Shared\ContainerReplCommand.cs (1)
24return builder.WithCommand("repl", "REPL", async context =>
Aspire.Hosting.SqlServer (1)
src\Shared\ContainerReplCommand.cs (1)
24return builder.WithCommand("repl", "REPL", async context =>
Aspire.Hosting.Tests (56)
Backchannel\AuxiliaryBackchannelRpcTargetTests.cs (7)
2253custom.WithCommand( 2318custom.WithCommand( 2369custom.WithCommand( 2430custom.WithCommand( 2500custom.WithCommand( 2575custom.WithCommand( 2623custom.WithCommand(
Dashboard\DashboardServiceTests.cs (7)
164builder.WithCommand( 191builder.WithCommand( 200builder.WithCommand( 289builder.WithCommand( 352builder.WithCommand( 409builder.WithCommand( 842builder.WithCommand(
ResourceCommandServiceTests.cs (42)
143custom.WithCommand(name: "mycommand", 181custom.WithCommand(name: "mycommand", 221custom.WithCommand(name: "mycommand", 256custom.WithCommand(name: "mycommand", 286custom.WithCommand(name: "mycommand", 318custom.WithCommand(name: "mycommand", 367custom.WithCommand(name: "mycommand", 393custom.WithCommand( 415custom.WithCommand(name: KnownResourceCommands.StartCommand, 436custom.WithCommand(name: KnownResourceCommands.StopCommand, 458custom.WithCommand(name: currentCommandName, 476custom.WithCommand(name: "generate-token", 497custom.WithCommand(name: "mycommand", 517custom.WithCommand(name: "mycommand", 575custom.WithCommand(name: "mycommand", 616custom.WithCommand(name: "mycommand", 656custom.WithCommand(name: "mycommand", 702custom.WithCommand(name: "mycommand", 747custom.WithCommand(name: "mycommand", 778custom.WithCommand(name: "mycommand", 809custom.WithCommand(name: "mycommand", 841custom.WithCommand(name: "mycommand", 882custom.WithCommand(name: "mycommand", 915custom.WithCommand(name: "mycommand", 940custom.WithCommand(name: "mycommand", 983custom.WithCommand(name: "mycommand", 1056custom.WithCommand(name: "mycommand", 1148custom.WithCommand(name: "mycommand", 1218custom.WithCommand(name: "mycommand", 1268custom.WithCommand(name: "mycommand", 1344custom.WithCommand( 1426custom.WithCommand( 1498custom.WithCommand(name: "mycommand", 1544custom.WithCommand(name: "mycommand", 1574custom.WithCommand(name: "mycommand", 1610custom.WithCommand(name: "mycommand", 1666custom.WithCommand(name: "mycommand", 1718custom.WithCommand(name: "generate-token", 1847custom.WithCommand(name: "cancelable-command", 1892custom.WithCommand(name: "cancelable-command", 1943custom.WithCommand(name: "progress-command", 1975custom.WithCommand(name: "success-command",
Aspire.Hosting.Valkey (1)
src\Shared\ContainerReplCommand.cs (1)
24return builder.WithCommand("repl", "REPL", async context =>
DotnetTool.AppHost (1)
AppHost.cs (1)
96.WithCommand("reset", "Reset Packages", ctx =>
Stress.AppHost (43)
CommandResources.cs (20)
38iconCommands.WithCommand( 49iconCommands.WithCommand( 62iconCommands.WithCommand( 73iconCommands.WithCommand( 85iconCommands.WithCommand( 97iconCommands.WithCommand( 105iconCommands.WithCommand( 118argumentCommands.WithCommand( 168argumentCommands.WithCommand( 253argumentCommands.WithCommand( 339argumentCommands.WithCommand( 366argumentCommands.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)
44return resource.WithCommand( 81return container.WithCommand( 102return container.WithCommand( 165return container.WithCommand( 212return container.WithCommand( 244return container.WithCommand( 285return resource.WithCommand( 401return resource.WithCommand(