Using Silverlight 3 with RIA: what's the difference between a LoadOperation.Completed event and using a callback through the DomainContext.Load method? Both work asynchronously and both provide access to LoadOperation. When / why should I use one over the other?
Thank: -)
There is no difference; 2 options are offered for flexibility. Many times, a callback will suffice, but if you return LoadOperation from a method, the caller can select a subscription.
, , Completed, - . , .
, . . , , , , , .
context.Load<EntityType>(query).Completed += (lo, args) => { myGrid.ItemsSource = ((LoadOperation) lo).Entities; }
, .
!
Source: https://habr.com/ru/post/1736323/More articles:Memory usage with Django + SQLite3 - pythonJSF Back Button - jsfNeed help implementing a simple socket server using GIOService (GLib, Glib-GIO) - cReading a byte from Intptr - c #Java: forward class declarations in namespaces - javaКаковы эквиваленты Java в словах С# 'is' и 'as'? - javaBuying iphone in the app - iphoneWhat settings allow my application to control battery life? - androidHow easy is it to convert an application from Visual Foxpro 6 to Visual Foxpro 9? - visual-foxproTemplate Interdependence - c ++All Articles