2 instantiations of RuntimeResolution
Aspire.Hosting.TestUtilities (2)
Utils\DockerUtils.cs (2)
163=> new(executable, FailureReason: null, DetectionException: null); 166=> new(Executable: null, FailureReason: failureReason, DetectionException: detectionException);
12 references to RuntimeResolution
Aspire.Hosting.Tests (1)
DockerUtilsTests.cs (1)
17var resolution = DockerUtils.ResolveRuntimeExecutable(
Aspire.Hosting.TestUtilities (11)
Utils\DockerUtils.cs (11)
17private static readonly Lazy<RuntimeResolution> s_runtimeResolution = new(ResolveRuntimeExecutable); 33private static RuntimeResolution ResolveRuntimeExecutable() 37internal static RuntimeResolution ResolveRuntimeExecutable( 56return RuntimeResolution.Failed(DescribeMissingRuntime(configuredRuntime)); 60? RuntimeResolution.Succeeded(executable) 61: RuntimeResolution.Failed(DescribeMissingRuntime(configuredRuntime)); 65return RuntimeResolution.Failed("container runtime detection timed out.", exception); 71return RuntimeResolution.Failed( 99var runtimeResolution = s_runtimeResolution.Value; 162public static RuntimeResolution Succeeded(string executable) 165public static RuntimeResolution Failed(string failureReason, Exception? detectionException = null)