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