10 instantiations of ProcessCommandSpec
Aspire.Hosting (2)
ResourceBuilderExtensions.cs (2)
3452_ => new ProcessCommandSpec(executablePath) 3762return new ProcessCommandSpec(executablePath)
Aspire.Hosting.Tests (4)
WithProcessCommandTests.cs (4)
1399_ => new ProcessCommandSpec("test-command") 1514.WithProcessCommand("reject", "Reject", _ => new ProcessCommandSpec(executable) 1568.WithProcessCommand("wait", "Wait", _ => new ProcessCommandSpec(DotnetFileAppProcess.ResolvedExecutablePath) 1619return new ProcessCommandSpec(executablePath)
Aspire.Hosting.TestUtilities (1)
Utils\DotnetFileAppProcess.cs (1)
151return new ProcessCommandSpec(ExecutablePath)
Stress.AppHost (3)
CommandResources.cs (3)
559return new ProcessCommandSpec("dotnet") 1467return new ProcessCommandSpec(NodeExecutablePath) 1492return new ProcessCommandSpec(DotnetExecutablePath)
21 references to ProcessCommandSpec
Aspire.Hosting (12)
ApplicationModel\ProcessCommandOptions.cs (1)
7/// Optional configuration for resource process commands added with <see cref="ResourceBuilderExtensions.WithProcessCommand{TResource}(IResourceBuilder{TResource}, string, string, Func{ExecuteCommandContext, ValueTask{ProcessCommandSpec}}, ProcessCommandOptions?)"/>.
ApplicationModel\ProcessCommandResultContext.cs (2)
11/// <see cref="ResourceBuilderExtensions.WithProcessCommand{TResource}(IResourceBuilder{TResource}, string, string, Func{ExecuteCommandContext, ValueTask{ProcessCommandSpec}}, ProcessCommandOptions?)"/>. 67public required ProcessCommandSpec ProcessCommandSpec { get; init; }
ResourceBuilderExtensions.cs (9)
3504Func<ExecuteCommandContext, ProcessCommandSpec> processSpecFactory, 3513context => new ValueTask<ProcessCommandSpec>(processSpecFactory(context)), 3561Func<ExecuteCommandContext, ValueTask<ProcessCommandSpec>> processSpecFactory, 3579var processCommandSpec = await processSpecFactory(context).ConfigureAwait(false) 3662internal static async Task<ExecuteCommandResult> ExecuteProcessCommandAsync(ExecuteCommandContext context, ProcessCommandSpec processCommandSpec, ProcessCommandOptions commandOptions) 3731private static ProcessCommandSpec CreateProcessCommandSpec(ProcessCommandExportOptions exportOptions) 3745private static ProcessCommandSpec CreateProcessCommandSpec(ProcessCommandSpecExportData exportData) 3799private static ProcessSpec CreateProcessSpec(ExecuteCommandContext context, ProcessCommandSpec processCommandSpec, ProcessCommandOptions commandOptions) 3840private static async Task<ExecuteCommandResult> GetProcessCommandResultAsync(ExecuteCommandContext context, ProcessCommandSpec processCommandSpec, ProcessResult processResult, ProcessCommandOptions commandOptions)
Aspire.Hosting.Tests (6)
WithProcessCommandTests.cs (6)
474async ValueTask<ProcessCommandSpec> CreateSpecAsync(ExecuteCommandContext _) 1346Func<ExecuteCommandContext, ValueTask<ProcessCommandSpec>> processSpecFactory = _ => new ValueTask<ProcessCommandSpec>((ProcessCommandSpec)null!); 1369static ProcessCommandSpec CreateSpec(ExecuteCommandContext _) 1610private static ProcessCommandSpec CreateProcessCommandSpec(
Aspire.Hosting.TestUtilities (1)
Utils\DotnetFileAppProcess.cs (1)
143public static ProcessCommandSpec CreateProcessCommandSpec(
Stress.AppHost (2)
CommandResources.cs (2)
1453private static ProcessCommandSpec CreateNodeProcessSpec( 1477private static ProcessCommandSpec CreateDotnetFileAppProcessSpec(