Open sandboxFocus

Class DelegateCommandFactory

Exposes several methods that create instances of the DelegateCommand and AsyncDelegateCommand classes for different signatures of the execution delegate, with or without parameter, with or without CancellationToken, synchronous, asynchronous, and background.

Inheritance
DelegateCommandFactory
Namespace: Metalama.Patterns.Wpf
Assembly: Metalama.Patterns.Wpf.dll
Syntax
public static class DelegateCommandFactory

Methods

Name Description
CreateAsyncDelegateCommand(Func<CancellationToken, Task>, Func<bool>?, bool, bool)
CreateAsyncDelegateCommand(Func<CancellationToken, Task>, Func<bool>, INotifyPropertyChanged, string, bool, bool)
CreateAsyncDelegateCommand(Func<Task>, Func<bool>?, bool, bool)
CreateAsyncDelegateCommand(Func<Task>, Func<bool>, INotifyPropertyChanged, string, bool, bool)
CreateAsyncDelegateCommand<T>(Func<T, CancellationToken, Task>, Func<T, bool>, bool, bool)
CreateAsyncDelegateCommand<T>(Func<T, CancellationToken, Task>, Func<T, bool>, INotifyPropertyChanged, string, bool, bool)
CreateAsyncDelegateCommand<T>(Func<T, Task>, Func<T, bool>, bool, bool)
CreateBackgroundDelegateCommand(Action, Func<bool>?, bool)
CreateBackgroundDelegateCommand(Action, Func<bool>, INotifyPropertyChanged, string, bool)
CreateBackgroundDelegateCommand(Action<CancellationToken>, Func<bool>?, bool)
CreateBackgroundDelegateCommand(Action<CancellationToken>, Func<bool>, INotifyPropertyChanged, string, bool)
CreateBackgroundDelegateCommand<T>(Action<T, CancellationToken>, Func<T, bool>?, bool)
CreateBackgroundDelegateCommand<T>(Action<T, CancellationToken>, Func<T, bool>, INotifyPropertyChanged, string, bool)
CreateBackgroundDelegateCommand<T>(Action<T>, Func<T, bool>?, bool)
CreateBackgroundDelegateCommand<T>(Action<T>, Func<T, bool>, INotifyPropertyChanged, string, bool)
CreateDelegateCommand(Action, Func<bool>?)
CreateDelegateCommand(Action, Func<bool>, INotifyPropertyChanged, string)
CreateDelegateCommand<T>(Action<T>, Func<T, bool>?)
CreateDelegateCommand<T>(Action<T>, Func<T, bool>, INotifyPropertyChanged, string)
CreateParametricAsyncDelegateCommand<T>(Func<T, CancellationToken, Task>, Func<T, bool>?, bool, bool, bool)
CreateParametricAsyncDelegateCommand<T>(Func<T, Task>, Func<T, bool>?, bool, bool, bool)