forked from xamarinhq/xamu-infrastructure
-
Notifications
You must be signed in to change notification settings - Fork 0
IAsyncDelegateCommand
Mark Smith edited this page Sep 2, 2016
·
2 revisions
This interface abstracts the asynchronous ICommand approach and provides access to two additional methods:
-
ExecuteAsync: the async (Taskbased) version ofICommand.Execute. -
RaiseCanExecuteChanged : inherited from the base interface [IDelegateCommand](IDelegateCommand) which provides access to theCanExecuteChanged` event.
/// <summary>
/// Extension of ICommand which exposes a raise execute handler and async support.
/// </summary>
public interface IAsyncDelegateCommand : IAsyncDelegateCommand
{
Task ExecuteAsync (object parameter);
}
/// <summary>
/// Extension of ICommand which exposes a raise execute handler.
/// </summary>
public interface IAsyncDelegateCommand<T> : IAsyncDelegateCommand<T>
{
Task ExecuteAsync (T parameter);
}