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