1 write to ExecuteCommand
Aspire.Hosting (1)
ApplicationModel\ResourceCommandAnnotation.cs (1)
78ExecuteCommand = executeCommand;
91 references to ExecuteCommand
Aspire.Hosting (5)
ApplicationModel\ResourceCommandAnnotation.cs (2)
292/// The result of executing a command. Returned from <see cref="ResourceCommandAnnotation.ExecuteCommand"/>. 439/// Context for <see cref="ResourceCommandAnnotation.ExecuteCommand"/>.
ApplicationModel\ResourceCommandService.cs (3)
420return await annotation.ExecuteCommand(context).ConfigureAwait(false); 427return await annotation.ExecuteCommand(context).ConfigureAwait(false); 449commandResult = await annotation.ExecuteCommand(linkedContext).ConfigureAwait(false);
Aspire.Hosting.Azure.Tests (64)
AzureEnvironmentResourceExtensionsTests.cs (64)
108var result = await delete.ExecuteCommand(new ExecuteCommandContext 180var result = await delete.ExecuteCommand(new ExecuteCommandContext 305var result = await command.ExecuteCommand(new ExecuteCommandContext 653var result = await resetCommand.ExecuteCommand(new ExecuteCommandContext 707var commandTask = resetCommand.ExecuteCommand(new ExecuteCommandContext 1092var result = await changeLocationCommand.ExecuteCommand(new ExecuteCommandContext 1173var result = await getResourceCommand.ExecuteCommand(new ExecuteCommandContext 1257var result = await getResourceCommand.ExecuteCommand(new ExecuteCommandContext 1526var result = await getResourceCommand.ExecuteCommand(new ExecuteCommandContext 1590var result = await getResourceCommand.ExecuteCommand(new ExecuteCommandContext 1651var result = await getResourceCommand.ExecuteCommand(new ExecuteCommandContext 1712var result = await cancelCommand.ExecuteCommand(new ExecuteCommandContext 1847var result = await cancelCommand.ExecuteCommand(new ExecuteCommandContext 1905var result = await command.ExecuteCommand(new ExecuteCommandContext 1956var queuedReprovisionTask = queuedReprovisionCommand.ExecuteCommand(new ExecuteCommandContext 1968var result = await conflictingCommand.ExecuteCommand(new ExecuteCommandContext 2052var result = await cancelCommand.ExecuteCommand(new ExecuteCommandContext 2136var result = await deleteCommand.ExecuteCommand(new ExecuteCommandContext 2230var result = await deleteCommand.ExecuteCommand(new ExecuteCommandContext 2301var commandTask = deleteCommand.ExecuteCommand(new ExecuteCommandContext 2379var deleteTask = deleteCommand.ExecuteCommand(new ExecuteCommandContext 2393var cancelResult = await cancelCommand.ExecuteCommand(new ExecuteCommandContext 2458var result = await forgetCommand.ExecuteCommand(new ExecuteCommandContext 2522var result = await reprovisionCommand.ExecuteCommand(new ExecuteCommandContext 2576var commandTask = reprovisionCommand.ExecuteCommand(new ExecuteCommandContext 2636var commandTask = reprovisionCommand.ExecuteCommand(new ExecuteCommandContext 2713var storageTask = reprovisionStorageCommand.ExecuteCommand(new ExecuteCommandContext 2727var storage2Task = reprovisionStorage2Command.ExecuteCommand(new ExecuteCommandContext 2790var commandTask = reprovisionCommand.ExecuteCommand(new ExecuteCommandContext 2807var cancelResult = await cancelCommand.ExecuteCommand(new ExecuteCommandContext 2888var cancelResult = await cancelCommand.ExecuteCommand(new ExecuteCommandContext 2934var result = await cancelCommand.ExecuteCommand(new ExecuteCommandContext 2987var commandTask = reprovisionCommand.ExecuteCommand(new ExecuteCommandContext 3001var cancelResult = await cancelCommand.ExecuteCommand(new ExecuteCommandContext 3054var commandTask = changeLocationCommand.ExecuteCommand(new ExecuteCommandContext 3127var executionTask = changeLocationCommand.ExecuteCommand(new ExecuteCommandContext 3180var result = await changeLocationCommand.ExecuteCommand(new ExecuteCommandContext 3240var result = await changeLocationCommand.ExecuteCommand(new ExecuteCommandContext 3301var executionTask = changeLocationCommand.ExecuteCommand(new ExecuteCommandContext 3371var result = await changeLocationCommand.ExecuteCommand(new ExecuteCommandContext 3432var executionTask = changeLocationCommand.ExecuteCommand(new ExecuteCommandContext 3501var result = await changeLocationCommand.ExecuteCommand(new ExecuteCommandContext 3558var executionTask = changeLocationCommand.ExecuteCommand(new ExecuteCommandContext 3621var executionTask = changeLocationCommand.ExecuteCommand(new ExecuteCommandContext 3692var result = await changeLocationCommand.ExecuteCommand(new ExecuteCommandContext 3747var result = await reprovisionAllCommand.ExecuteCommand(new ExecuteCommandContext 3787var result = await changeContextCommand.ExecuteCommand(new ExecuteCommandContext 3861var result = await changeContextCommand.ExecuteCommand(new ExecuteCommandContext 3909var result = await changeContextCommand.ExecuteCommand(new ExecuteCommandContext 3965var result = await changeContextCommand.ExecuteCommand(new ExecuteCommandContext 4112var result = await reprovisionCommand.ExecuteCommand(new ExecuteCommandContext 4191var result = await reprovisionCommand.ExecuteCommand(new ExecuteCommandContext 4263var result = await reprovisionCommand.ExecuteCommand(new ExecuteCommandContext 4343var result = await reprovisionCommand.ExecuteCommand(new ExecuteCommandContext 4417var commandTask = reprovisionCommand.ExecuteCommand(new ExecuteCommandContext 4469var executionTask = changeLocationCommand.ExecuteCommand(new ExecuteCommandContext 4515var result = await changeLocationCommand.ExecuteCommand(new ExecuteCommandContext 4561var result = await reprovisionCommand.ExecuteCommand(new ExecuteCommandContext 4629var result = await reprovisionCommand.ExecuteCommand(new ExecuteCommandContext 4868var result = await deleteCommand.ExecuteCommand(new ExecuteCommandContext 4920var result = await deleteCommand.ExecuteCommand(new ExecuteCommandContext 4967var result = await deleteCommand.ExecuteCommand(new ExecuteCommandContext 5015var result = await deleteCommand.ExecuteCommand(new ExecuteCommandContext 5153var cancelResult = await cancelCommand.ExecuteCommand(new ExecuteCommandContext
Aspire.Hosting.Blazor.Tests (2)
BlazorHostedExtensionsTests.cs (1)
303var result = await debugCommand.ExecuteCommand(new ExecuteCommandContext
WithBlazorAppTests.cs (1)
321var result = await command.ExecuteCommand(new ExecuteCommandContext
Aspire.Hosting.DevTunnels.Tests (3)
DevTunnelResourceBuilderExtensionsTests.cs (3)
607var commandTask = command.ExecuteCommand(new ExecuteCommandContext 661var commandTask = command.ExecuteCommand(new ExecuteCommandContext 711var commandTask = command.ExecuteCommand(new ExecuteCommandContext
Aspire.Hosting.Foundry.Tests (1)
PromptAgentTests.cs (1)
192var result = await command.ExecuteCommand(new ExecuteCommandContext
Aspire.Hosting.Maui (1)
Lifecycle\MauiBuildQueueEventSubscriber.cs (1)
609return await originalStop.ExecuteCommand(context).ConfigureAwait(false);
Aspire.Hosting.Maui.Tests (2)
MauiBuildQueueTests.cs (2)
596var result = await stopCommand.ExecuteCommand(CreateExecuteCommandContext(env)).DefaultTimeout(); 629var result = await stopCommand.ExecuteCommand(CreateExecuteCommandContext(env)).DefaultTimeout();
Aspire.Hosting.MongoDB.Tests (2)
tests\Shared\ContainerReplCommandTestBase.cs (2)
84var result = await command.ExecuteCommand(new ExecuteCommandContext 107await Assert.ThrowsAnyAsync<OperationCanceledException>(() => command.ExecuteCommand(new ExecuteCommandContext
Aspire.Hosting.MySql.Tests (2)
tests\Shared\ContainerReplCommandTestBase.cs (2)
84var result = await command.ExecuteCommand(new ExecuteCommandContext 107await Assert.ThrowsAnyAsync<OperationCanceledException>(() => command.ExecuteCommand(new ExecuteCommandContext
Aspire.Hosting.PostgreSQL.Tests (2)
tests\Shared\ContainerReplCommandTestBase.cs (2)
84var result = await command.ExecuteCommand(new ExecuteCommandContext 107await Assert.ThrowsAnyAsync<OperationCanceledException>(() => command.ExecuteCommand(new ExecuteCommandContext
Aspire.Hosting.Redis.Tests (2)
tests\Shared\ContainerReplCommandTestBase.cs (2)
84var result = await command.ExecuteCommand(new ExecuteCommandContext 107await Assert.ThrowsAnyAsync<OperationCanceledException>(() => command.ExecuteCommand(new ExecuteCommandContext
Aspire.Hosting.SqlServer.Tests (2)
tests\Shared\ContainerReplCommandTestBase.cs (2)
84var result = await command.ExecuteCommand(new ExecuteCommandContext 107await Assert.ThrowsAnyAsync<OperationCanceledException>(() => command.ExecuteCommand(new ExecuteCommandContext
Aspire.Hosting.TestUtilities (1)
Utils\TerminalCommandTestHelpers.cs (1)
22var result = await command.ExecuteCommand(new ExecuteCommandContext
Aspire.Hosting.Valkey.Tests (2)
tests\Shared\ContainerReplCommandTestBase.cs (2)
84var result = await command.ExecuteCommand(new ExecuteCommandContext 107await Assert.ThrowsAnyAsync<OperationCanceledException>(() => command.ExecuteCommand(new ExecuteCommandContext