1 instantiation of Container
Aspire.Hosting (1)
Dcp\Model\Container.cs (1)
518var c = new Container(new ContainerSpec { Image = image });
27 references to Container
Aspire.Hosting (27)
Dcp\DcpExecutor.cs (19)
220Task.Run(() => WatchKubernetesResourceAsync<Container>((t, r) => ProcessResourceChange(t, r, _resourceState.ContainersMap, "Container", (c, s) => _snapshotBuilder.ToSnapshot(c, s)))), 369if (resource is Container { LogsAvailable: true } || 410Container => KnownResourceTypes.Container, 418if (resource is Container container) 434enumerable = new ResourceLogSource<Container>(_logger, _kubernetesService, container, follow: false); 477Container c when c.LogsAvailable => new ResourceLogSource<T>(_logger, _kubernetesService, resource, follow: true), 580if (cr is Container container) 702var toCreate = _appResources.Where(r => r.DcpResource is Container || r.DcpResource is Executable); 707var containersTask = CreateContainersAsync(toCreate.Where(ar => ar.DcpResource is Container), cancellationToken); 1115var ctr = Container.Create(containerObjectInstance.Name, containerImageName); 1217await _executorEvents.PublishAsync(new OnResourceChangedContext(_shutdownCancellation.Token, KnownResourceTypes.Container, cr.ModelResource, cr.DcpResourceName, new ResourceStatus(null, null, null), s => _snapshotBuilder.ToSnapshot((Container)cr.DcpResource, s))).ConfigureAwait(false); 1240var dcpContainerResource = (Container)cr.DcpResource; 1282private static async Task ApplyBuildArgumentsAsync(Container dcpContainerResource, IResource modelContainerResource, CancellationToken cancellationToken) 1480case Container c: 1483var cu = await _kubernetesService.GetAsync<Container>(c.Metadata.Name, cancellationToken: attemptCancellationToken).ConfigureAwait(false); 1548case Container c: 1549await EnsureResourceDeletedAsync<Container>(appResource.DcpResourceName).ConfigureAwait(false);
Dcp\DcpResourceState.cs (1)
12public readonly ConcurrentDictionary<string, Container> ContainersMap = [];
Dcp\Model\Container.cs (2)
516public static Container Create(string name, string image) 518var 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)
36Schema.Add<Container>(ContainerKind, "containers");
Dcp\ResourceSnapshotBuilder.cs (2)
20public CustomResourceSnapshot ToSnapshot(Container container, CustomResourceSnapshot previous) 230if (resource is Container container)