ITaskService

Nov 26, 2011 at 11:50 AM
Edited Nov 26, 2011 at 11:51 AM

Hi, What do you thinking about possibility on Catel to have ITaskService which allow us to Perform Task for example, Undo, Redo and Repeat Action, ...

An Interface like that:

Public Interface ITaskService

{

      void Redo(+ 1 overload);

      void Undo(+ 1 overload);

      void PerformTask<T>(+ 1 overload);

      .....

}

Waiting for feedback.

Nov 26, 2011 at 2:59 PM

Hmm, not sure how you see this. How do you think about the communication with the view model? Should it be a task on a view model, or ...?

Nov 29, 2011 at 6:15 AM

In the first time, we can see using of this Service on the one view models only (through Commands and her Execute Methods  for example) and Perform task or action on view model (like long Observable items loading)  and make grow up in the future (Possibility to have communication between different view models).

Nov 30, 2011 at 7:18 PM

Might be a good idea to implement such a pattern. Have to think about this to implement this correctly without affecting other functionality.

Jan 3, 2012 at 1:14 PM

Hi, Can you check this: http://www.codeproject.com/KB/WPF/MVVM_Background_Tasks.aspx

Jan 6, 2012 at 1:47 PM

Thanks for the info, really helpful. Please create a task so we can put it on the roadmap.