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)
250Task.Run(() => WatchKubernetesResourceAsync<ContainerExec>((t, r) => ProcessResourceChange(t, r, _resourceState.ContainerExecsMap, "ContainerExec", (c, s) => _snapshotBuilder.ToSnapshot(c, s)))), 301else if (_resourceState.ContainerExecsMap.TryGetValue(entry.ResourceName, out var containerExec)) 405resource is ContainerExec { LogsAvailable: true }) 487ContainerExec => KnownResourceTypes.ContainerExec, 508if (resource is ContainerExec containerExec) 527else if (_resourceState.ContainerExecsMap.TryGetValue(resourceName, out var containerExec)) 529enumerable = new ResourceLogSource<ContainerExec>(_logger, _kubernetesService, containerExec, follow: false); 570ContainerExec e when e.LogsAvailable => new ResourceLogSource<T>(_logger, _kubernetesService, resource, follow: true), 658"ContainerExec" => _resourceState.ContainerExecsMap.TryGetValue(resourceName, out var containerExec) ? containerExec : null, 681else if (cr is ContainerExec containerExec) 799var toCreate = _appResources.Where(r => r.DcpResource is Container or Executable or ContainerExec); 820var containerExecsTask = CreateContainerExecutablesAsync(toCreate.Where(ar => ar.DcpResource is ContainerExec), cancellationToken); 929var containerExec = ContainerExec.Create( 1101ContainerExec exe => s => _snapshotBuilder.ToSnapshot(exe, s), 1172if (er.DcpResource is not ContainerExec containerExe) 1174throw new InvalidOperationException($"Expected an {nameof(ContainerExec)} resource, but got {er.DcpResource.Kind} instead");
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)
42Schema.Add<ContainerExec>(ContainerExecKind, "containerexecs");
Dcp\ResourceSnapshotBuilder.cs (1)
94public CustomResourceSnapshot ToSnapshot(ContainerExec executable, CustomResourceSnapshot previous)