Wednesday, June 9, 2010

MVVMSAQ model for Silverlight

MVVM is the base coding style for Silverlight, and I am adding a Synchronized Action Queue to it.

Silverlight can get data from server via WCF or Asmx (also javascript of course), but neighter WCF nor asmx supports synchronized data mode, which can make the code a bit hard to maintain when multiple operations are required for a single action.

the SAQ model (Synchronized Action Queue) will fix that. Basically we fake synchronized action via a thread, and all actions will be queued for the thread to process. It has no advantage when a single action is required for any operation, but when you need combined actions for a given operation, the synchronized command will make the code much easier to read and maintain.

No comments: