1 instantiation of ContainerExec
Aspire.Hosting (1)
Dcp\Model\ContainerExec.cs (1)
125var containerExec = new ContainerExec(new ContainerExecSpec
24 references to ContainerExec
Aspire.Hosting (24)
Dcp\DcpExecutor.cs (17)
377Task.Run(() => WatchKubernetesResourceAsync<ContainerExec>((t, r) => ProcessResourceChange(t, r, _resourceState.ContainerExecsMap, Model.Dcp.ContainerExecKind, (c, s) => _snapshotBuilder.ToSnapshot(c, s)))), 428else if (_resourceState.ContainerExecsMap.TryGetValue(entry.ResourceName, out var containerExec)) 532resource is ContainerExec { LogsAvailable: true }) 614ContainerExec => KnownResourceTypes.ContainerExec, 635if (resource is ContainerExec containerExec) 654else if (_resourceState.ContainerExecsMap.TryGetValue(resourceName, out var containerExec)) 656enumerable = new ResourceLogSource<ContainerExec>(_logger, _kubernetesService, containerExec, follow: false); 697ContainerExec e when e.LogsAvailable => new ResourceLogSource<T>(_logger, _kubernetesService, resource, follow: true), 785"ContainerExec" => _resourceState.ContainerExecsMap.TryGetValue(resourceName, out var containerExec) ? containerExec : null, 808else if (cr is ContainerExec containerExec) 1381var containerExec = ContainerExec.Create( 1612ContainerExec exe => s => _snapshotBuilder.ToSnapshot(exe, s), 1687if (er.DcpResource is not ContainerExec containerExe) 1689throw new InvalidOperationException($"Expected an {nameof(ContainerExec)} resource, but got {er.DcpResource.Kind} instead"); 3031.Where(ar => ar.DcpResource is ContainerExec ce && regular.Any(td => td.DcpResource is Container c && c.Metadata.Name == ce.Spec.ContainerName)), 3033.Where(ar => ar.DcpResource is ContainerExec ce && tunnelDependent.Any(td => td.DcpResource is Container c && c.Metadata.Name == ce.Spec.ContainerName))
Dcp\DcpResourceState.cs (1)
14public readonly ConcurrentDictionary<string, ContainerExec> ContainerExecsMap = [];
Dcp\Model\ContainerExec.cs (4)
108/// Create a new <see cref="ContainerExec"/> resource. 115/// Create a new <see cref="ContainerExec"/> resource. 123public static ContainerExec Create(string name, string containerName, string command, List<string>? args = null, string? workingDirectory = null) 125var containerExec = new ContainerExec(new ContainerExecSpec
Dcp\Model\GroupVersion.cs (1)
43Schema.Add<ContainerExec>(ContainerExecKind, "containerexecs");
Dcp\ResourceSnapshotBuilder.cs (1)
94public CustomResourceSnapshot ToSnapshot(ContainerExec executable, CustomResourceSnapshot previous)