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)
19
public string
Name
=> name;
36 references to Name
Aspire.Hosting (17)
Publishing\ContainerRuntimeReadiness.cs (4)
47
$"{containerRuntime.
Name
} is not running",
48
$"Start {containerRuntime.
Name
} and confirm to continue.",
79
$"{containerRuntime.
Name
} is not running. Start {containerRuntime.
Name
} and try again.");
Publishing\ResourceContainerImageManager.cs (13)
322
logger.LogDebug("Checking {ContainerRuntimeName} health", containerRuntime.
Name
);
328
logger.LogError("Container runtime '{ContainerRuntimeName}' is not running or is unhealthy. Cannot build container images.", containerRuntime.
Name
);
329
throw new InvalidOperationException($"Container runtime '{containerRuntime.
Name
}' is not running or is unhealthy.");
332
logger.LogDebug("{ContainerRuntimeName} is healthy", containerRuntime.
Name
);
388
logger.LogDebug("Checking {ContainerRuntimeName} health", containerRuntime.
Name
);
394
logger.LogError("Container runtime '{ContainerRuntimeName}' is not running or is unhealthy. Cannot build container image.", containerRuntime.
Name
);
395
throw new InvalidOperationException($"Container runtime '{containerRuntime.
Name
}' is not running or is unhealthy.");
398
logger.LogDebug("{ContainerRuntimeName} is healthy", containerRuntime.
Name
);
544
logger.LogDebug("Checking {ContainerRuntimeName} health", containerRuntime.
Name
);
547
logger.LogError("Container runtime '{ContainerRuntimeName}' is not running or is unhealthy. Cannot build container image.", containerRuntime.
Name
);
548
throw new InvalidOperationException($"Container runtime '{containerRuntime.
Name
}' is not running or is unhealthy.");
925
if (string.Equals(containerRuntime.
Name
, KnownContainerRuntimes.Docker, StringComparison.OrdinalIgnoreCase))
930
if (string.Equals(containerRuntime.
Name
, KnownContainerRuntimes.Podman, StringComparison.OrdinalIgnoreCase))
Aspire.Hosting.Azure.Sandboxes (2)
AzureSandboxContainerDeployment.cs (2)
1010
$"Container runtime '{runtime.
Name
}' does not support image manifest inspection, which is required for Azure sandbox deployment.");
1110
$"Container runtime '{runtime.
Name
}' does not support image configuration inspection, which is required for Azure sandbox deployment.");
Aspire.Hosting.Docker (8)
DockerComposeEnvironmentResource.cs (8)
173
new MarkdownString($"Running compose down for **{Name}** using **{runtime.
Name
}**"),
179
new MarkdownString($"Compose shutdown complete for **{Name}** ({runtime.
Name
})"),
440
new MarkdownString($"Running compose up for **{Name}** using **{runtime.
Name
}**"),
459
new MarkdownString($"Service **{Name}** is now running with Docker Compose locally (runtime: {runtime.
Name
})"),
465
await deployTask.CompleteAsync($"Compose deployment failed ({runtime.
Name
}): {ex.Message}", CompletionState.CompletedWithError, context.CancellationToken).ConfigureAwait(false);
486
new MarkdownString($"Running compose down for **{Name}** using **{runtime.
Name
}**"),
497
new MarkdownString($"Compose shutdown complete for **{Name}** ({runtime.
Name
})"),
503
await deployTask.CompleteAsync($"Compose shutdown failed ({runtime.
Name
}): {ex.Message}", CompletionState.CompletedWithError, context.CancellationToken).ConfigureAwait(false);
Aspire.Hosting.Dotnet.Tests (2)
DotnetProjectResourceTests.cs (2)
1121
var executable = runtime.
Name
switch
1125
_ => throw new InvalidOperationException($"Unexpected container runtime '{runtime.
Name
}'.")
Aspire.Hosting.MongoDB (1)
src\Shared\ContainerReplCommand.cs (1)
44
var execOptions = CreateExecOptions(options, runtime.
Name
.ToLowerInvariant(), containerId);
Aspire.Hosting.MySql (1)
src\Shared\ContainerReplCommand.cs (1)
44
var execOptions = CreateExecOptions(options, runtime.
Name
.ToLowerInvariant(), containerId);
Aspire.Hosting.PostgreSQL (1)
src\Shared\ContainerReplCommand.cs (1)
44
var execOptions = CreateExecOptions(options, runtime.
Name
.ToLowerInvariant(), containerId);
Aspire.Hosting.Redis (1)
src\Shared\ContainerReplCommand.cs (1)
44
var execOptions = CreateExecOptions(options, runtime.
Name
.ToLowerInvariant(), containerId);
Aspire.Hosting.SqlServer (1)
src\Shared\ContainerReplCommand.cs (1)
44
var execOptions = CreateExecOptions(options, runtime.
Name
.ToLowerInvariant(), containerId);
Aspire.Hosting.Tests (1)
Publishing\ResourceContainerImageManagerTests.cs (1)
2153
Assert.Equal($"{containerRuntime.
Name
} build failed with exit code {ex.ExitCode}.", ex.Message[..newlineIndex]);
Aspire.Hosting.Valkey (1)
src\Shared\ContainerReplCommand.cs (1)
44
var execOptions = CreateExecOptions(options, runtime.
Name
.ToLowerInvariant(), containerId);