1 write to _resourceState
Aspire.Hosting (1)
Dcp\DcpExecutor.cs (1)
91_resourceState = new(model.Resources.ToDictionary(r => r.Name));
14 references to _resourceState
Aspire.Hosting (14)
Dcp\DcpExecutor.cs (14)
92_snapshotBuilder = new(_resourceState); 195Task.Run(() => WatchKubernetesResourceAsync<Executable>((t, r) => ProcessResourceChange(t, r, _resourceState.ExecutablesMap, "Executable", (e, s) => _snapshotBuilder.ToSnapshot(e, s)))), 196Task.Run(() => WatchKubernetesResourceAsync<Container>((t, r) => ProcessResourceChange(t, r, _resourceState.ContainersMap, "Container", (c, s) => _snapshotBuilder.ToSnapshot(c, s)))), 237if (_resourceState.ContainersMap.TryGetValue(entry.ResourceName, out var container)) 241else if (_resourceState.ExecutablesMap.TryGetValue(entry.ResourceName, out var executable)) 316_resourceState.ApplicationModel.TryGetValue(resourceName, out var appModelResource)) 366_resourceState.ResourceAssociatedServicesMap.Remove((resourceKind, resource.Metadata.Name), out _); 373_resourceState.ResourceAssociatedServicesMap[(resourceKind, resource.Metadata.Name)] 471if (!ProcessResourceChange(_resourceState.EndpointsMap, watchEventType, endpoint)) 489if (!ProcessResourceChange(_resourceState.ServicesMap, watchEventType, service)) 494foreach (var ((resourceKind, resourceName), _) in _resourceState.ResourceAssociatedServicesMap.Where(e => e.Value.Contains(service.Metadata.Name))) 504"Container" => _resourceState.ContainersMap.TryGetValue(resourceName, out var container) ? container : null, 505"Executable" => _resourceState.ExecutablesMap.TryGetValue(resourceName, out var executable) ? executable : null, 514_resourceState.ApplicationModel.TryGetValue(appModelResourceName, out var appModelResource))