2 instantiations of RuntimeResolution
Aspire.Hosting.TestUtilities (2)
Utils\DockerUtils.cs (2)
166=> new(executable, FailureReason: null, DetectionException: null); 169=> 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); 36private static RuntimeResolution ResolveRuntimeExecutable() 40internal static RuntimeResolution ResolveRuntimeExecutable( 59return RuntimeResolution.Failed(DescribeMissingRuntime(configuredRuntime)); 63? RuntimeResolution.Succeeded(executable) 64: RuntimeResolution.Failed(DescribeMissingRuntime(configuredRuntime)); 68return RuntimeResolution.Failed("container runtime detection timed out.", exception); 74return RuntimeResolution.Failed( 102var runtimeResolution = s_runtimeResolution.Value; 165public static RuntimeResolution Succeeded(string executable) 168public static RuntimeResolution Failed(string failureReason, Exception? detectionException = null)