Interface ITaskCancellableCommand<TResult>
Cancellable command
Inherited Members
System.ComponentModel.INotifyPropertyChanged.PropertyChanged
System.ComponentModel.INotifyPropertyChanging.PropertyChanging
Namespace: Neutronium.BuildingBlocks.ApplicationTools
Assembly: Neutronium.BuildingBlocks.ApplicationTools.dll
Syntax
public interface ITaskCancellableCommand<TResult> : INotifyPropertyChanged, INotifyPropertyChanging
Type Parameters
Name | Description |
---|---|
TResult | Result type |
Properties
| Improve this Doc View SourceCanBeExecuted
True if the command can be executed
Declaration
bool CanBeExecuted { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Cancel
Cancel the current execution
Declaration
ISimpleCommand Cancel { get; }
Property Value
Type | Description |
---|---|
Neutronium.MVVMComponents.ISimpleCommand |
Computing
True if the command is executing
Declaration
bool Computing { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Results
Results exposed as Observable CommandResult<TResult>
Declaration
IObservable<CommandResult<TResult>> Results { get; }
Property Value
Type | Description |
---|---|
System.IObservable<CommandResult<TResult>> |
Run
Execute the command
Declaration
ICommand Run { get; }
Property Value
Type | Description |
---|---|
System.Windows.Input.ICommand |