1 instantiation of ContainerExec
Aspire.Hosting (1)
Dcp\Model\ContainerExec.cs (1)
125var containerExec = new ContainerExec(new ContainerExecSpec
23 references to ContainerExec
Aspire.Hosting (23)
Dcp\DcpExecutor.cs (16)
179var containerExes = _appResources.OfType<RenderedModelResource>().Where(ar => ar.DcpResource is ContainerExec); 297Task.Run(() => WatchKubernetesResourceAsync<ContainerExec>((t, r) => ProcessResourceChange(t, r, _resourceState.ContainerExecsMap, "ContainerExec", (c, s) => _snapshotBuilder.ToSnapshot(c, s)))), 348else if (_resourceState.ContainerExecsMap.TryGetValue(entry.ResourceName, out var containerExec)) 452resource is ContainerExec { LogsAvailable: true }) 534ContainerExec => KnownResourceTypes.ContainerExec, 555if (resource is ContainerExec containerExec) 574else if (_resourceState.ContainerExecsMap.TryGetValue(resourceName, out var containerExec)) 576enumerable = new ResourceLogSource<ContainerExec>(_logger, _kubernetesService, containerExec, follow: false); 617ContainerExec e when e.LogsAvailable => new ResourceLogSource<T>(_logger, _kubernetesService, resource, follow: true), 705"ContainerExec" => _resourceState.ContainerExecsMap.TryGetValue(resourceName, out var containerExec) ? containerExec : null, 728else if (cr is ContainerExec containerExec) 1218var containerExec = ContainerExec.Create( 1441ContainerExec exe => s => _snapshotBuilder.ToSnapshot(exe, s), 1496if (er.DcpResource is not ContainerExec containerExe) 1498throw 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)
43Schema.Add<ContainerExec>(ContainerExecKind, "containerexecs");
Dcp\ResourceSnapshotBuilder.cs (1)
94public CustomResourceSnapshot ToSnapshot(ContainerExec executable, CustomResourceSnapshot previous)