19 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)
1809builder.WithCommand(commandName, displayName,
Aspire.Hosting.Tests (5)
Dashboard\DashboardServiceTests.cs (2)
152builder.WithCommand( 424builder.WithCommand(
ResourceCommandServiceTests.cs (3)
86custom.WithCommand(name: "mycommand", 122.WithCommand(name: "mycommand", 166.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 => 171.WithCommand("dismiss-interaction", "Dismiss interaction tests", executeCommand: commandContext => 212.WithCommand("many-values", "Many values", executeCommand: async commandContext =>
Program.cs (5)
47serviceBuilder.WithCommand( 58serviceBuilder.WithCommand( 94.WithCommand( 102.WithCommand( 111.WithCommand(