I have an MVVM project that polls a channel every 10 seconds to see updates. The result from the feed is displayed using the ObervableCollection. This works well, but I'm not sure where I can send my dispatcher. Should it be in Model.DataService or in ViewModel.MainViewModel?
thank
I think that there is no right answer without knowing the details of the project.Regarding the MVVM pattern:Put it in Model.DataService)Or is it a feature of your view? Yes => Put it in ViewModel.MainViewModel.
, ( )? , ViewModel.
, , ViewModel. ViewModel, ViewModel Observable.
Reactive Framework Observable.FromEvent. . (.Throttle(3000) 3- ), , .
Source: https://habr.com/ru/post/1751535/More articles:python httplib: getting outgoing request headers - pythonParagraph tagging - stringRead the explanation of skb_reserve - linux-kernelCompiles in Eclipse, but not with Javac from the command line: StackOverFlow - javaHow to get text before $ el using jQuery? - jqueryHow to reset identification in a table - c #How to calculate the distance of Mahalanobis between two time series of equal sizes? - mathWrite permission for char * - c ++Error: two pointers cannot be added - c ++How to make peek () in Jackson json library? - javaAll Articles