Click or drag to resize

IAsyncRelayCommandTParam Interface

Extends ICommand to allow asynchronous command execution, where the accepted parameter of the Execute(TParam) and CanExecute(TParam) is strongly typed to eliminate type casting inside the registered callbacks.

Namespace:  BionicCode.Utilities.Net.Core.Wpf.Generic
Assembly:  BionicCode.Utilities.Net.Core.Wpf (in BionicCode.Utilities.Net.Core.Wpf.dll) Version: 1.0.2
Syntax
public interface IAsyncRelayCommand<TParam> : IAsyncRelayCommand, 
	ICommand

Type Parameters

TParam
The type of the CommandParameter.

The IAsyncRelayCommandTParam type exposes the following members.

Methods
  NameDescription
Public methodCanExecute
Checks if the ICommand can execute.
(Inherited from IAsyncRelayCommand.)
Public methodCanExecute(Object)
Defines the method that determines whether the command can execute in its current state.
(Inherited from ICommand.)
Public methodCanExecute(TParam)
Checks if the ICommand can execute.
Public methodExecute
Executes the AsyncRelayCommand.
(Inherited from IAsyncRelayCommand.)
Public methodExecute(Object)
Defines the method to be called when the command is invoked.
(Inherited from ICommand.)
Public methodExecute(TParam)
Executes the AsyncRelayCommand on the current command target.
Public methodExecuteAsync
Executes the AsyncRelayCommand asynchronously.
(Inherited from IAsyncRelayCommand.)
Public methodExecuteAsync(Object)
Asynchronously executes the AsyncRelayCommand.
(Inherited from IAsyncRelayCommand.)
Public methodExecuteAsync(TParam)
Asynchronously executes the AsyncRelayCommand on the current command target.
Top
Events
  NameDescription
Public eventCanExecuteChanged
Occurs when changes occur that affect whether or not the command should execute.
(Inherited from ICommand.)
Top
See Also
https://github.com/BionicCode/BionicCode.Net/blob/master/README.md