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)
186var containerExes = _appResources.OfType<RenderedModelResource>().Where(ar => ar.DcpResource is ContainerExec); 313Task.Run(() => WatchKubernetesResourceAsync<ContainerExec>((t, r) => ProcessResourceChange(t, r, _resourceState.ContainerExecsMap, Model.Dcp.ContainerExecKind, (c, s) => _snapshotBuilder.ToSnapshot(c, s)))), 364else if (_resourceState.ContainerExecsMap.TryGetValue(entry.ResourceName, out var containerExec)) 468resource is ContainerExec { LogsAvailable: true }) 550ContainerExec => KnownResourceTypes.ContainerExec, 571if (resource is ContainerExec containerExec) 590else if (_resourceState.ContainerExecsMap.TryGetValue(resourceName, out var containerExec)) 592enumerable = new ResourceLogSource<ContainerExec>(_logger, _kubernetesService, containerExec, follow: false); 633ContainerExec e when e.LogsAvailable => new ResourceLogSource<T>(_logger, _kubernetesService, resource, follow: true), 721"ContainerExec" => _resourceState.ContainerExecsMap.TryGetValue(resourceName, out var containerExec) ? containerExec : null, 744else if (cr is ContainerExec containerExec) 1290var containerExec = ContainerExec.Create( 1521ContainerExec exe => s => _snapshotBuilder.ToSnapshot(exe, s), 1596if (er.DcpResource is not ContainerExec containerExe) 1598throw 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)