1 instantiation of Container
Aspire.Hosting (1)
Dcp\Model\Container.cs (1)
366
var c = new
Container
(new ContainerSpec { Image = image });
24 references to Container
Aspire.Hosting (24)
Dcp\ApplicationExecutor.cs (18)
107
private readonly ConcurrentDictionary<string,
Container
> _containersMap = [];
262
Task.Run(() => WatchKubernetesResourceAsync<
Container
>((t, r) => ProcessResourceChange(t, r, _containersMap, "Container", ToSnapshot))),
429
if (resource is
Container
{ LogsAvailable: true } ||
437
if (resource is
Container
c && c.Status is { } status)
480
Container
c when c.LogsAvailable => new ResourceLogSource<T>(_logger, kubernetesService, _dcpInfo?.Version, resource),
591
if (cr is
Container
container)
606
private CustomResourceSnapshot ToSnapshot(
Container
container, CustomResourceSnapshot previous)
795
if (resource is
Container
container)
953
var toCreate = _appResources.Where(r => r.DcpResource is
Container
|| r.DcpResource is Executable || r.DcpResource is ExecutableReplicaSet);
964
var containersTask = CreateContainersAsync(toCreate.Where(ar => ar.DcpResource is
Container
), cancellationToken);
1448
var
ctr =
Container
.Create(containerObjectInstance.Name, containerImageName);
1588
var
dcpContainerResource = (
Container
)cr.DcpResource;
1752
private static async Task ApplyBuildArgumentsAsync(
Container
dcpContainerResource, IResource modelContainerResource, CancellationToken cancellationToken)
1975
await DeleteResourcesAsync<
Container
>("container", cancellationToken).ConfigureAwait(false);
2037
case
Container
c:
2073
case
Container
c:
Dcp\Model\Container.cs (2)
364
public static
Container
Create(string name, string image)
366
var
c = new Container(new ContainerSpec { Image = image });
Dcp\Model\ContainerExec.cs (2)
12
/// The name of the <see cref="
Container
"/> resource (DCP model name, not the Docker/Podman name)
103
/// Represents a command to be executed in a given <see cref="
Container
"/> resource.
Dcp\Model\GroupVersion.cs (1)
35
Schema.Add<
Container
>(ContainerKind, "containers");
Dcp\ResourceLogSource.cs (1)
37
if (resource is
Container
&& dcpVersion?.CompareTo(DcpVersion.MinimumVersionAspire_8_1) >= 0)