3 implementations of Name
Aspire.Hosting (1)
Publishing\ContainerRuntimeBase.cs (1)
47
public abstract string
Name
{ get; }
Aspire.Hosting.Tests (1)
Publishing\ContainerRuntimeBaseTests.cs (1)
390
public string
Name
=> "unsupported-inspection";
Aspire.Hosting.TestUtilities (1)
Publishing\FakeContainerRuntime.cs (1)
16
public string
Name
=> name;
25 references to Name
Aspire.Hosting (14)
Pipelines\DistributedApplicationPipeline.cs (4)
177
$"{containerRuntime.
Name
} is not running",
178
$"Start {containerRuntime.
Name
} and confirm to continue.",
211
$"{containerRuntime.
Name
} is not running. Start {containerRuntime.
Name
} and try again.");
Publishing\ResourceContainerImageManager.cs (10)
218
logger.LogDebug("Checking {ContainerRuntimeName} health", containerRuntime.
Name
);
224
logger.LogError("Container runtime '{ContainerRuntimeName}' is not running or is unhealthy. Cannot build container images.", containerRuntime.
Name
);
225
throw new InvalidOperationException($"Container runtime '{containerRuntime.
Name
}' is not running or is unhealthy.");
228
logger.LogDebug("{ContainerRuntimeName} is healthy", containerRuntime.
Name
);
250
logger.LogDebug("Checking {ContainerRuntimeName} health", containerRuntime.
Name
);
256
logger.LogError("Container runtime '{ContainerRuntimeName}' is not running or is unhealthy. Cannot build container image.", containerRuntime.
Name
);
257
throw new InvalidOperationException($"Container runtime '{containerRuntime.
Name
}' is not running or is unhealthy.");
260
logger.LogDebug("{ContainerRuntimeName} is healthy", containerRuntime.
Name
);
439
if (string.Equals(containerRuntime.
Name
, KnownContainerRuntimes.Docker, StringComparison.OrdinalIgnoreCase))
444
if (string.Equals(containerRuntime.
Name
, KnownContainerRuntimes.Podman, StringComparison.OrdinalIgnoreCase))
Aspire.Hosting.Azure.Sandboxes (2)
AzureSandboxContainerDeployment.cs (2)
977
$"Container runtime '{runtime.
Name
}' does not support image manifest inspection, which is required for Azure sandbox deployment.");
1077
$"Container runtime '{runtime.
Name
}' does not support image configuration inspection, which is required for Azure sandbox deployment.");
Aspire.Hosting.Docker (8)
DockerComposeEnvironmentResource.cs (8)
175
new MarkdownString($"Running compose down for **{Name}** using **{runtime.
Name
}**"),
181
new MarkdownString($"Compose shutdown complete for **{Name}** ({runtime.
Name
})"),
414
new MarkdownString($"Running compose up for **{Name}** using **{runtime.
Name
}**"),
433
new MarkdownString($"Service **{Name}** is now running with Docker Compose locally (runtime: {runtime.
Name
})"),
439
await deployTask.CompleteAsync($"Compose deployment failed ({runtime.
Name
}): {ex.Message}", CompletionState.CompletedWithError, context.CancellationToken).ConfigureAwait(false);
460
new MarkdownString($"Running compose down for **{Name}** using **{runtime.
Name
}**"),
471
new MarkdownString($"Compose shutdown complete for **{Name}** ({runtime.
Name
})"),
477
await deployTask.CompleteAsync($"Compose shutdown failed ({runtime.
Name
}): {ex.Message}", CompletionState.CompletedWithError, context.CancellationToken).ConfigureAwait(false);
Aspire.Hosting.Tests (1)
Publishing\ResourceContainerImageManagerTests.cs (1)
1556
Assert.Equal($"{containerRuntime.
Name
} build failed with exit code {ex.ExitCode}.", ex.Message[..newlineIndex]);