DelegateCommand<T> and async/await support

Topics: Prism v4 - Silverlight 4, Prism v4 - WPF 4
Aug 8, 2012 at 10:15 PM


are there any plans to support async/await in Commands but adding a ctor overload by maybe something like accepting Func<Task,T> which would be then awaited once exected?

Right now I can only use async void OnCommandExecuted(...) which I would gladlly change for async Task OnCommandExecuted()



Aug 9, 2012 at 6:57 PM


So far, we are not aware if this feature will be implemented in Prism in the future. In my opinion you could create a work item in the issue tracker section so that the Prism team considers this for a future release.

Also, if you consider creating a custom DelegateCommand extending from the current DelegateCommandBase, you should be aware of the limitation mentioned in this related work item.


Agustin Adami