Show / Hide Table of Contents

Interface IAsyncDelegateCommand<T>

Defines methods for an asynchronous delegate command.

ICommand.CanExecute(object)
ICommand.Execute(object)
ICommand.CanExecuteChanged
Namespace: Sartorius.SAF.Presentation.Commands
Assembly: Sartorius.SAF.Presentation.dll
Syntax
public interface IAsyncDelegateCommand<in T> : ICommand
Type Parameters
Name Description
T

The type of the command parameter.

Methods

View Source

CanExecute(T)

Determines whether the command can execute in its current state

Declaration
bool CanExecute(T parameter)
Parameters
Type Name Description
T parameter

Data used by the command.

Returns
Type Description
bool

true, if this command can be executed; otherwise, false.

View Source

Execute(T)

Defines the method to be called when the command is invoked.

Declaration
Task Execute(T parameter)
Parameters
Type Name Description
T parameter

Data used by the command.

Returns
Type Description
Task

The task object representing the asynchronous operation.

Extension Methods

CollectionExtensions.AddRange<T, TCollection>(TCollection, IEnumerable<T>)
SerializableObjectCloneExtension.Clone<T>(T)
  • View Source
Back to top Generated by DocFX