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)
3192builder.WithCommand( 3708builder.WithCommand(commandName, displayName,
Aspire.Hosting.Azure (1)
AzureEnvironmentResourceExtensions.cs (1)
54resourceBuilder.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)
606.WithCommand(
Aspire.Hosting.EntityFrameworkCore (7)
EFResourceBuilderExtensions.cs (7)
656toolBuilder.WithCommand( 691migrationBuilder.WithCommand( 707migrationBuilder.WithCommand( 724migrationBuilder.WithCommand( 741migrationBuilder.WithCommand( 764migrationBuilder.WithCommand( 776migrationBuilder.WithCommand(
Aspire.Hosting.Foundry (1)
PromptAgent\PromptAgentBuilderExtensions.cs (1)
77agentBuilder.WithCommand(
Aspire.Hosting.Tests (55)
Backchannel\AuxiliaryBackchannelRpcTargetTests.cs (7)
2253custom.WithCommand( 2318custom.WithCommand( 2369custom.WithCommand( 2430custom.WithCommand( 2500custom.WithCommand( 2575custom.WithCommand( 2623custom.WithCommand(
Dashboard\DashboardServiceTests.cs (7)
159builder.WithCommand( 186builder.WithCommand( 195builder.WithCommand( 284builder.WithCommand( 347builder.WithCommand( 404builder.WithCommand( 723builder.WithCommand(
ResourceCommandServiceTests.cs (41)
142custom.WithCommand(name: "mycommand", 180custom.WithCommand(name: "mycommand", 220custom.WithCommand(name: "mycommand", 255custom.WithCommand(name: "mycommand", 285custom.WithCommand(name: "mycommand", 317custom.WithCommand(name: "mycommand", 366custom.WithCommand(name: "mycommand", 392custom.WithCommand( 414custom.WithCommand(name: KnownResourceCommands.StartCommand, 435custom.WithCommand(name: KnownResourceCommands.StopCommand, 457custom.WithCommand(name: currentCommandName, 475custom.WithCommand(name: "generate-token", 496custom.WithCommand(name: "mycommand", 516custom.WithCommand(name: "mycommand", 574custom.WithCommand(name: "mycommand", 615custom.WithCommand(name: "mycommand", 655custom.WithCommand(name: "mycommand", 701custom.WithCommand(name: "mycommand", 746custom.WithCommand(name: "mycommand", 777custom.WithCommand(name: "mycommand", 808custom.WithCommand(name: "mycommand", 840custom.WithCommand(name: "mycommand", 881custom.WithCommand(name: "mycommand", 914custom.WithCommand(name: "mycommand", 939custom.WithCommand(name: "mycommand", 982custom.WithCommand(name: "mycommand", 1055custom.WithCommand(name: "mycommand", 1147custom.WithCommand(name: "mycommand", 1217custom.WithCommand(name: "mycommand", 1267custom.WithCommand(name: "mycommand", 1323custom.WithCommand( 1395custom.WithCommand(name: "mycommand", 1441custom.WithCommand(name: "mycommand", 1471custom.WithCommand(name: "mycommand", 1507custom.WithCommand(name: "mycommand", 1563custom.WithCommand(name: "mycommand", 1615custom.WithCommand(name: "generate-token", 1734custom.WithCommand(name: "cancelable-command", 1779custom.WithCommand(name: "cancelable-command", 1830custom.WithCommand(name: "progress-command", 1862custom.WithCommand(name: "success-command",
DotnetTool.AppHost (1)
AppHost.cs (1)
96.WithCommand("reset", "Reset Packages", ctx =>
Stress.AppHost (42)
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( 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 =>