23 references to WithCommand
Aspire.Hosting (2)
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 (1)
1914builder.WithCommand(commandName, displayName,
Aspire.Hosting.Tests (9)
Dashboard\DashboardServiceTests.cs (2)
152builder.WithCommand( 470builder.WithCommand(
ResourceCommandServiceTests.cs (7)
86custom.WithCommand(name: "mycommand", 122.WithCommand(name: "mycommand", 166.WithCommand(name: "mycommand", 198custom.WithCommand(name: "mycommand", 225.WithCommand(name: "mycommand", 254.WithCommand(name: "mycommand", 304custom.WithCommand(name: "mycommand",
Stress.AppHost (12)
InteractionCommands.cs (7)
15.WithCommand("confirmation-interaction", "Confirmation interactions", executeCommand: async commandContext => 31.WithCommand("messagebar-interaction", "Messagebar interactions", executeCommand: async commandContext => 45.WithCommand("html-interaction", "HTML interactions", executeCommand: async commandContext => 66.WithCommand("value-interaction", "Value interactions", executeCommand: async commandContext => 101.WithCommand("input-interaction", "Input interactions", executeCommand: async commandContext => 173.WithCommand("dismiss-interaction", "Dismiss interaction tests", executeCommand: commandContext => 214.WithCommand("many-values", "Many values", executeCommand: async commandContext =>
Program.cs (5)
47serviceBuilder.WithCommand( 58serviceBuilder.WithCommand( 94.WithCommand( 102.WithCommand( 111.WithCommand(