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