ITaskService

Developer
Nov 26, 2011 at 10:50 AM
Edited Nov 26, 2011 at 10: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.

Coordinator
Nov 26, 2011 at 1: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 ...?

Developer
Nov 29, 2011 at 5: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).

Coordinator
Nov 30, 2011 at 6: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.

Developer
Jan 3, 2012 at 12:14 PM

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

Coordinator
Jan 6, 2012 at 12:47 PM

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