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)
107var result = await delete.ExecuteCommand(new ExecuteCommandContext 179var result = await delete.ExecuteCommand(new ExecuteCommandContext 304var result = await command.ExecuteCommand(new ExecuteCommandContext 652var result = await resetCommand.ExecuteCommand(new ExecuteCommandContext 706var commandTask = resetCommand.ExecuteCommand(new ExecuteCommandContext 1066var result = await changeLocationCommand.ExecuteCommand(new ExecuteCommandContext 1147var result = await getResourceCommand.ExecuteCommand(new ExecuteCommandContext 1231var result = await getResourceCommand.ExecuteCommand(new ExecuteCommandContext 1500var result = await getResourceCommand.ExecuteCommand(new ExecuteCommandContext 1564var result = await getResourceCommand.ExecuteCommand(new ExecuteCommandContext 1625var result = await getResourceCommand.ExecuteCommand(new ExecuteCommandContext 1686var result = await cancelCommand.ExecuteCommand(new ExecuteCommandContext 1821var result = await cancelCommand.ExecuteCommand(new ExecuteCommandContext 1879var result = await command.ExecuteCommand(new ExecuteCommandContext 1930var queuedReprovisionTask = queuedReprovisionCommand.ExecuteCommand(new ExecuteCommandContext 1942var result = await conflictingCommand.ExecuteCommand(new ExecuteCommandContext 2026var result = await cancelCommand.ExecuteCommand(new ExecuteCommandContext 2110var result = await deleteCommand.ExecuteCommand(new ExecuteCommandContext 2204var result = await deleteCommand.ExecuteCommand(new ExecuteCommandContext 2275var commandTask = deleteCommand.ExecuteCommand(new ExecuteCommandContext 2353var deleteTask = deleteCommand.ExecuteCommand(new ExecuteCommandContext 2367var cancelResult = await cancelCommand.ExecuteCommand(new ExecuteCommandContext 2432var result = await forgetCommand.ExecuteCommand(new ExecuteCommandContext 2496var result = await reprovisionCommand.ExecuteCommand(new ExecuteCommandContext 2550var commandTask = reprovisionCommand.ExecuteCommand(new ExecuteCommandContext 2610var commandTask = reprovisionCommand.ExecuteCommand(new ExecuteCommandContext 2687var storageTask = reprovisionStorageCommand.ExecuteCommand(new ExecuteCommandContext 2701var storage2Task = reprovisionStorage2Command.ExecuteCommand(new ExecuteCommandContext 2764var commandTask = reprovisionCommand.ExecuteCommand(new ExecuteCommandContext 2781var cancelResult = await cancelCommand.ExecuteCommand(new ExecuteCommandContext 2862var cancelResult = await cancelCommand.ExecuteCommand(new ExecuteCommandContext 2908var result = await cancelCommand.ExecuteCommand(new ExecuteCommandContext 2961var commandTask = reprovisionCommand.ExecuteCommand(new ExecuteCommandContext 2975var cancelResult = await cancelCommand.ExecuteCommand(new ExecuteCommandContext 3028var commandTask = changeLocationCommand.ExecuteCommand(new ExecuteCommandContext 3101var executionTask = changeLocationCommand.ExecuteCommand(new ExecuteCommandContext 3154var result = await changeLocationCommand.ExecuteCommand(new ExecuteCommandContext 3214var result = await changeLocationCommand.ExecuteCommand(new ExecuteCommandContext 3275var executionTask = changeLocationCommand.ExecuteCommand(new ExecuteCommandContext 3345var result = await changeLocationCommand.ExecuteCommand(new ExecuteCommandContext 3406var executionTask = changeLocationCommand.ExecuteCommand(new ExecuteCommandContext 3475var result = await changeLocationCommand.ExecuteCommand(new ExecuteCommandContext 3532var executionTask = changeLocationCommand.ExecuteCommand(new ExecuteCommandContext 3595var executionTask = changeLocationCommand.ExecuteCommand(new ExecuteCommandContext 3666var result = await changeLocationCommand.ExecuteCommand(new ExecuteCommandContext 3721var result = await reprovisionAllCommand.ExecuteCommand(new ExecuteCommandContext 3761var result = await changeContextCommand.ExecuteCommand(new ExecuteCommandContext 3835var result = await changeContextCommand.ExecuteCommand(new ExecuteCommandContext 3883var result = await changeContextCommand.ExecuteCommand(new ExecuteCommandContext 3939var result = await changeContextCommand.ExecuteCommand(new ExecuteCommandContext 4086var result = await reprovisionCommand.ExecuteCommand(new ExecuteCommandContext 4165var result = await reprovisionCommand.ExecuteCommand(new ExecuteCommandContext 4237var result = await reprovisionCommand.ExecuteCommand(new ExecuteCommandContext 4317var result = await reprovisionCommand.ExecuteCommand(new ExecuteCommandContext 4391var commandTask = reprovisionCommand.ExecuteCommand(new ExecuteCommandContext 4443var executionTask = changeLocationCommand.ExecuteCommand(new ExecuteCommandContext 4489var result = await changeLocationCommand.ExecuteCommand(new ExecuteCommandContext 4535var result = await reprovisionCommand.ExecuteCommand(new ExecuteCommandContext 4603var result = await reprovisionCommand.ExecuteCommand(new ExecuteCommandContext 4842var result = await deleteCommand.ExecuteCommand(new ExecuteCommandContext 4894var result = await deleteCommand.ExecuteCommand(new ExecuteCommandContext 4941var result = await deleteCommand.ExecuteCommand(new ExecuteCommandContext 4989var result = await deleteCommand.ExecuteCommand(new ExecuteCommandContext 5127var cancelResult = await cancelCommand.ExecuteCommand(new ExecuteCommandContext
Aspire.Hosting.Blazor.Tests (2)
BlazorHostedExtensionsTests.cs (1)
322var result = await debugCommand.ExecuteCommand(new ExecuteCommandContext
WithBlazorAppTests.cs (1)
320var result = await command.ExecuteCommand(new ExecuteCommandContext
Aspire.Hosting.DevTunnels.Tests (3)
DevTunnelResourceBuilderExtensionsTests.cs (3)
571var commandTask = command.ExecuteCommand(new ExecuteCommandContext 623var commandTask = command.ExecuteCommand(new ExecuteCommandContext 671var commandTask = command.ExecuteCommand(new ExecuteCommandContext
Aspire.Hosting.Foundry.Tests (1)
PromptAgentTests.cs (1)
187var result = await command.ExecuteCommand(new ExecuteCommandContext
Aspire.Hosting.Maui (1)
Lifecycle\MauiBuildQueueEventSubscriber.cs (1)
605return await originalStop.ExecuteCommand(context).ConfigureAwait(false);
Aspire.Hosting.Maui.Tests (2)
MauiBuildQueueTests.cs (2)
573var result = await stopCommand.ExecuteCommand(CreateExecuteCommandContext(env)).DefaultTimeout(); 606var result = await stopCommand.ExecuteCommand(CreateExecuteCommandContext(env)).DefaultTimeout();
Aspire.Hosting.MongoDB.Tests (2)
tests\Shared\ContainerReplCommandTestBase.cs (2)
83var result = await command.ExecuteCommand(new ExecuteCommandContext 106await Assert.ThrowsAnyAsync<OperationCanceledException>(() => command.ExecuteCommand(new ExecuteCommandContext
Aspire.Hosting.MySql.Tests (2)
tests\Shared\ContainerReplCommandTestBase.cs (2)
83var result = await command.ExecuteCommand(new ExecuteCommandContext 106await Assert.ThrowsAnyAsync<OperationCanceledException>(() => command.ExecuteCommand(new ExecuteCommandContext
Aspire.Hosting.PostgreSQL.Tests (2)
tests\Shared\ContainerReplCommandTestBase.cs (2)
83var result = await command.ExecuteCommand(new ExecuteCommandContext 106await Assert.ThrowsAnyAsync<OperationCanceledException>(() => command.ExecuteCommand(new ExecuteCommandContext
Aspire.Hosting.Redis.Tests (2)
tests\Shared\ContainerReplCommandTestBase.cs (2)
83var result = await command.ExecuteCommand(new ExecuteCommandContext 106await Assert.ThrowsAnyAsync<OperationCanceledException>(() => command.ExecuteCommand(new ExecuteCommandContext
Aspire.Hosting.SqlServer.Tests (2)
tests\Shared\ContainerReplCommandTestBase.cs (2)
83var result = await command.ExecuteCommand(new ExecuteCommandContext 106await 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)
83var result = await command.ExecuteCommand(new ExecuteCommandContext 106await Assert.ThrowsAnyAsync<OperationCanceledException>(() => command.ExecuteCommand(new ExecuteCommandContext