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)
17
var
resolution = DockerUtils.ResolveRuntimeExecutable(
Aspire.Hosting.TestUtilities (11)
Utils\DockerUtils.cs (11)
17
private static readonly Lazy<
RuntimeResolution
> s_runtimeResolution = new(ResolveRuntimeExecutable);
33
private static
RuntimeResolution
ResolveRuntimeExecutable()
37
internal static
RuntimeResolution
ResolveRuntimeExecutable(
56
return
RuntimeResolution
.Failed(DescribeMissingRuntime(configuredRuntime));
60
?
RuntimeResolution
.Succeeded(executable)
61
:
RuntimeResolution
.Failed(DescribeMissingRuntime(configuredRuntime));
65
return
RuntimeResolution
.Failed("container runtime detection timed out.", exception);
71
return
RuntimeResolution
.Failed(
99
var
runtimeResolution = s_runtimeResolution.Value;
162
public static
RuntimeResolution
Succeeded(string executable)
165
public static
RuntimeResolution
Failed(string failureReason, Exception? detectionException = null)