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 = []; 263Task.Run(() => WatchKubernetesResourceAsync<Container>((t, r) => ProcessResourceChange(t, r, _containersMap, "Container", ToSnapshot))), 430if (resource is Container { LogsAvailable: true } || 438if (resource is Container c && c.Status is { } status) 482Container c when c.LogsAvailable => new ResourceLogSource<T>(_logger, kubernetesService, _dcpInfo?.Version, resource), 593if (cr is Container container) 608private CustomResourceSnapshot ToSnapshot(Container container, CustomResourceSnapshot previous) 814if (resource is Container container) 972var toCreate = _appResources.Where(r => r.DcpResource is Container || r.DcpResource is Executable || r.DcpResource is ExecutableReplicaSet); 983var containersTask = CreateContainersAsync(toCreate.Where(ar => ar.DcpResource is Container), cancellationToken); 1467var ctr = Container.Create(containerObjectInstance.Name, containerImageName); 1607var dcpContainerResource = (Container)cr.DcpResource; 1771private static async Task ApplyBuildArgumentsAsync(Container dcpContainerResource, IResource modelContainerResource, CancellationToken cancellationToken) 1994await DeleteResourcesAsync<Container>("container", cancellationToken).ConfigureAwait(false); 2056case Container c: 2092case 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)