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