Table of Contents

Class Command<T>

Namespace
The.Web.Pages
Assembly
Instagile.Web.Client.dll
public class Command<T> : Command where T : notnull

Type Parameters

T
Inheritance
Command<T>
Inherited Members

Constructors

Command(Func<string>, Action<T>)

public Command(Func<string> getLabel, Action<T> execute)

Parameters

getLabel Func<string>
execute Action<T>

Command(Func<string>, Action<T>, Func<bool>?, Func<IServices, bool>?, bool)

[Obsolete("Use one of the two-argument constructors along with builder methods.")]
public Command(Func<string> getLabel, Action<T> execute, Func<bool>? canExecute = null, Func<IServices, bool>? isVisible = null, bool primary = false)

Parameters

getLabel Func<string>
execute Action<T>
canExecute Func<bool>
isVisible Func<IServices, bool>
primary bool

Command(Func<string>, Func<T, Task>)

public Command(Func<string> getLabel, Func<T, Task> execute)

Parameters

getLabel Func<string>
execute Func<T, Task>

Command(Func<string>, Func<T, Task>, Func<bool>?, Func<IServices, bool>?, bool)

[Obsolete("Use one of the two-argument constructors along with builder methods.")]
public Command(Func<string> getLabel, Func<T, Task> execute, Func<bool>? canExecute = null, Func<IServices, bool>? isVisible = null, bool primary = false)

Parameters

getLabel Func<string>
execute Func<T, Task>
canExecute Func<bool>
isVisible Func<IServices, bool>
primary bool

Command(Func<string>, Func<T, Task>, Func<Task<bool>>, Func<IServices, Task<bool>>?, bool)

[Obsolete("Use one of the two-argument constructors along with builder methods.")]
public Command(Func<string> getLabel, Func<T, Task> execute, Func<Task<bool>> canExecute, Func<IServices, Task<bool>>? isVisible = null, bool primary = false)

Parameters

getLabel Func<string>
execute Func<T, Task>
canExecute Func<Task<bool>>
isVisible Func<IServices, Task<bool>>
primary bool

Command(string, Action<T>)

public Command(string label, Action<T> execute)

Parameters

label string
execute Action<T>

Command(string, Action<T>, Func<bool>?, Func<IServices, bool>?, bool)

[Obsolete("Use one of the two-argument constructors along with builder methods.")]
public Command(string label, Action<T> execute, Func<bool>? canExecute = null, Func<IServices, bool>? isVisible = null, bool primary = false)

Parameters

label string
execute Action<T>
canExecute Func<bool>
isVisible Func<IServices, bool>
primary bool

Command(string, Func<T, Task>)

public Command(string label, Func<T, Task> execute)

Parameters

label string
execute Func<T, Task>

Command(string, Func<T, Task>, Func<bool>?, Func<IServices, bool>?, bool)

[Obsolete("Use one of the two-argument constructors along with builder methods.")]
public Command(string label, Func<T, Task> execute, Func<bool>? canExecute = null, Func<IServices, bool>? isVisible = null, bool primary = false)

Parameters

label string
execute Func<T, Task>
canExecute Func<bool>
isVisible Func<IServices, bool>
primary bool

Command(string, Func<T, Task>, Func<Task<bool>>, Func<IServices, Task<bool>>?, bool)

[Obsolete("Use one of the two-argument constructors along with builder methods.")]
public Command(string label, Func<T, Task> execute, Func<Task<bool>> canExecute, Func<IServices, Task<bool>>? isVisible = null, bool primary = false)

Parameters

label string
execute Func<T, Task>
canExecute Func<Task<bool>>
isVisible Func<IServices, Task<bool>>
primary bool