Open sandboxFocus
  • TOC

Metalama Documentation

Getting started

Video tutorials

Conceptual documentation

Commented examples

API documentation

Aspect API

Extensions API

Patterns API

Flashtrace API

Introspection API

Advanced API

Post­Sharp API migration

  • Article

Method CreateParametricAsyncDelegateCommand

CreateParametricAsyncDelegateCommand<T>(Func<T, CancellationToken, Task>, Func<T, bool>?, bool, bool, bool)

Declaration
public static AsyncDelegateCommand<T> CreateParametricAsyncDelegateCommand<T>(Func<T, CancellationToken, Task> execute, Func<T, bool>? canExecute, bool supportsCancellation, bool supportsConcurrentExecution, bool runsInBackground)
Parameters
Type Name Description
Func<T, CancellationToken, Task> execute
Func<T, bool> canExecute
bool supportsCancellation
bool supportsConcurrentExecution
bool runsInBackground
Returns
Type Description
AsyncDelegateCommand<T>
Type Parameters
Name Description
T

CreateParametricAsyncDelegateCommand<T>(Func<T, Task>, Func<T, bool>?, bool, bool, bool)

Declaration
public static AsyncDelegateCommand<T> CreateParametricAsyncDelegateCommand<T>(Func<T, Task> execute, Func<T, bool>? canExecute, bool supportsCancellation, bool supportsConcurrentExecution, bool runsInBackground)
Parameters
Type Name Description
Func<T, Task> execute
Func<T, bool> canExecute
bool supportsCancellation
bool supportsConcurrentExecution
bool runsInBackground
Returns
Type Description
AsyncDelegateCommand<T>
Type Parameters
Name Description
T