using System.Threading; using System.Threading.Tasks; using System.Windows.Input; namespace WxOrder.Framework.Commons { /// /// Provides an abstraction layer for custom controls which want to make use of Async Commands /// public interface IAsyncCommand : ICommand { /// /// Executes the Command with a specified parameter and the Default . /// /// The Command Parameter /// An Asynchronous Task Task ExecuteAsync(object parameter); /// /// Executes the Command with a specified parameter and using a /// /// The Command Parameter /// The . /// An Asynchronous Task Task ExecuteAsync(object parameter, CancellationToken cancellationToken); } }