ProcessDoctor
ProcessDoctor copied to clipboard
Better data structure for the process tree
Currently, we rely on a plain list ObservableCollection<ProcessModel> Processes model.
This is problematic in some ways.
- It's unclear how to efficiently find the process whenever we decide to delete it.
- It is unclear how to produce the tree structure from them.
Currently, I am thinking about declaring some sort of observable dictionary (is there such a class in BCL? if not, we could create our own).
Make sure to review and eliminate every instance of TODO[#5] in the application code.
Is that implementation match to you want? https://github.com/RicoSuter/NSwag/blob/master/src/NSwag.Core/Collections/ObservableDictionary.cs
Yep, could be.
If you are going to stick with ReactiveUI it is possible to use SourceCache from DynamicData package.
EDIT: I mean ReactiveUI already has reference to DynamicData so no new packages are needed