I have a collection of "active objects". That is, objects that you must first update yourself. In turn, these objects should be used to update the WPF-based GUI.
In the past, I would simply include my own stream in each object, but this only makes sense when working with a finite number of objects with well-defined life cycles. Now I use objects that exist only if necessary in the form, so the life cycle is unpredictable. In addition, I can have dozens of objects that create calls to the database and web services.
Under normal conditions, the update interval is 1 second, but this can take up to 30 seconds due to timeouts.
So what design would you recommend?
source
share