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)
3583builder.WithCommand( 4099builder.WithCommand(commandName, displayName,
Aspire.Hosting.Azure (1)
AzureEnvironmentResourceExtensions.cs (1)
51resourceBuilder.WithCommand(
Aspire.Hosting.Azure.Kusto (2)
AzureKustoBuilderExtensions.cs (2)
358resourceBuilder.WithCommand( 368resourceBuilder.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)
737toolBuilder.WithCommand( 772migrationBuilder.WithCommand( 788migrationBuilder.WithCommand( 805migrationBuilder.WithCommand( 822migrationBuilder.WithCommand( 845migrationBuilder.WithCommand( 857migrationBuilder.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)
2300custom.WithCommand( 2365custom.WithCommand( 2416custom.WithCommand( 2477custom.WithCommand( 2547custom.WithCommand( 2622custom.WithCommand( 2670custom.WithCommand(
Dashboard\DashboardServiceTests.cs (7)
164builder.WithCommand( 191builder.WithCommand( 200builder.WithCommand( 289builder.WithCommand( 352builder.WithCommand( 409builder.WithCommand( 884builder.WithCommand(
ResourceCommandServiceTests.cs (42)
144custom.WithCommand(name: "mycommand", 182custom.WithCommand(name: "mycommand", 222custom.WithCommand(name: "mycommand", 257custom.WithCommand(name: "mycommand", 287custom.WithCommand(name: "mycommand", 319custom.WithCommand(name: "mycommand", 368custom.WithCommand(name: "mycommand", 394custom.WithCommand( 416custom.WithCommand(name: KnownResourceCommands.StartCommand, 437custom.WithCommand(name: KnownResourceCommands.StopCommand, 459custom.WithCommand(name: currentCommandName, 477custom.WithCommand(name: "generate-token", 498custom.WithCommand(name: "mycommand", 518custom.WithCommand(name: "mycommand", 576custom.WithCommand(name: "mycommand", 617custom.WithCommand(name: "mycommand", 657custom.WithCommand(name: "mycommand", 703custom.WithCommand(name: "mycommand", 748custom.WithCommand(name: "mycommand", 779custom.WithCommand(name: "mycommand", 810custom.WithCommand(name: "mycommand", 842custom.WithCommand(name: "mycommand", 883custom.WithCommand(name: "mycommand", 916custom.WithCommand(name: "mycommand", 941custom.WithCommand(name: "mycommand", 984custom.WithCommand(name: "mycommand", 1057custom.WithCommand(name: "mycommand", 1149custom.WithCommand(name: "mycommand", 1219custom.WithCommand(name: "mycommand", 1269custom.WithCommand(name: "mycommand", 1346custom.WithCommand( 1428custom.WithCommand( 1500custom.WithCommand(name: "mycommand", 1546custom.WithCommand(name: "mycommand", 1576custom.WithCommand(name: "mycommand", 1612custom.WithCommand(name: "mycommand", 1668custom.WithCommand(name: "mycommand", 1720custom.WithCommand(name: "generate-token", 1936custom.WithCommand(name: "cancelable-command", 1981custom.WithCommand(name: "cancelable-command", 2032custom.WithCommand(name: "progress-command", 2064custom.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 =>
ParameterEndToEnd.AppHost (3)
AppHost.cs (3)
115parameter.WithCommand( 126parameter.WithCommand( 136parameter.WithCommand(
Stress.AppHost (44)
CommandResources.cs (20)
39iconCommands.WithCommand( 50iconCommands.WithCommand( 63iconCommands.WithCommand( 74iconCommands.WithCommand( 86iconCommands.WithCommand( 98iconCommands.WithCommand( 106iconCommands.WithCommand( 119argumentCommands.WithCommand( 169argumentCommands.WithCommand( 254argumentCommands.WithCommand( 340argumentCommands.WithCommand( 367argumentCommands.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)
44return resource.WithCommand( 81return container.WithCommand( 102return container.WithCommand( 165return container.WithCommand( 212return container.WithCommand( 244return container.WithCommand( 285return resource.WithCommand( 401return resource.WithCommand(