IAsyncDelegateCommand - markjulmar/xamu-infrastructure GitHub Wiki

IAsyncDelegateCommand

This interface abstracts the asynchronous ICommand approach and provides access to two additional methods:

Methods

  • ExecuteAsync : the async (Task based) version of ICommand.Execute.
  • RaiseCanExecuteChanged : inherited from the base interface [IDelegateCommand](IDelegateCommand) which provides access to the CanExecuteChanged` event.
/// <summary>
/// Extension of ICommand which exposes a raise execute handler and async support.
/// </summary>
public interface IAsyncDelegateCommand : IDelegateCommand
{
    Task ExecuteAsync (object parameter);
}

/// <summary>
/// Extension of ICommand which exposes a raise execute handler.
/// </summary>
public interface IAsyncDelegateCommand<T> : IDelegateCommand
{
    Task ExecuteAsync (T parameter);
}
⚠️ **GitHub.com Fallback** ⚠️