I have a central collection of values, each with a unique name. These variables will be updated by different sources and will also have to publish their data to various services. Now I have this currently working with INotifyPropertyChanged in WPF but there's a lot of events involved and all close coupled. As the sources may be plugins as well Im lookin if there would be a better way (pattern) of approaching this?
I'd like to get rid of the INotifyPropertyChanged.
one of the options im exploring is to have a mapping dictionary from source to destination and when the source updates (cyclic) to look which variables in the collection should be updated, this can be a simple for loop.
Any ideas are welcome to explore.
Aucun commentaire:
Enregistrer un commentaire