Async Task Manager
This project allow you to manage asynchronous tasks using the .NET 4 Framework and Prism.
DOWNLOAD
[Source code] or [Latest build]
FEATURES
REQUIREMENTS
SCEENSHOTS
Different colors are use to each status : succeed, failed, canceled
EXAMPLE
/// <summary> /// Start a new simple task /// </summary> public void StartSimpleTask() { Func<object> beginAction = () => { Thread.Sleep(3000); return true; }; Action<Task<object>> endAction = (result) =>
{ Text = "Ok"; }; var task = new TaskViewModel("Simple task !", beginAction, endAction); if (_eventAggregator != null) _eventAggregator.GetEvent<TaskEvent>().Publish(new TaskEventArgs(TaskEventArgsType.Started, task)); }
More example here