15 references to GCAction
dotnet (15)
Commands\Workload\Install\WorkloadGarbageCollector.cs (15)
48
private Dictionary<string,
GCAction
> _workloadSets = [];
49
private readonly Dictionary<(ManifestId id, ManifestVersion version, SdkFeatureBand featureBand),
GCAction
> _manifests = [];
59
WorkloadSetsToKeep.AddRange(_workloadSets.Where(kvp => kvp.Value !=
GCAction
.Collect).Select(kvp => kvp.Key));
60
ManifestsToKeep.AddRange(_manifests.Where(kvp => kvp.Value !=
GCAction
.Collect).Select(kvp => kvp.Key));
81
_workloadSets = installedWorkloadSets.ToDictionary(kvp => kvp.Key, kvp => kvp.Value.IsBaselineWorkloadSet ?
GCAction
.KeepWithoutPacks :
GCAction
.Collect);
90
_workloadSets[installState.WorkloadVersion] =
GCAction
.Keep;
104
_workloadSets[latestWorkloadSetVersion] =
GCAction
.Keep;
113
_workloadSets[workloadSetVersion] =
GCAction
.Keep;
131
List<(IWorkloadResolver, string workloadSet,
GCAction
gcAction)> resolvers = [(GetResolver(), "<none>",
GCAction
.Keep)];
138
if (gcAction !=
GCAction
.Collect)
151
GCAction
existingAction;
154
existingAction =
GCAction
.Collect;
168
if (gcAction ==
GCAction
.Keep)