C# Class MVVMSidekick.Reactive.ReactiveCommand

Reactive Command
Inheritance: IReactiveCommand, IDisposable
Mostra file Open project: waynebaby/MVVM-Sidekick Class Usage Examples

Public Methods

Method Description
CanExecute ( object parameter ) : bool

Determines whether this instance can execute the specified parameter.

Dispose ( ) : void
Execute ( object parameter ) : void

Executes the specified parameter.

ExecuteAsync ( object parameter ) : System.Threading.Tasks.Task

Executes asynchronously.

ListenCanExecuteObservable ( IObservable canExecuteSeq ) : IDisposable

Listens the can execute observable.

OverwriteCanExecute ( bool>.Func canExecuteFunc ) : IReactiveCommand

Overwrites the can execute logic.

ReactiveCommand ( bool canExecute = false ) : System

Initializes a new instance of the ReactiveCommand class.

Subscribe ( IObserver observer ) : IDisposable

Subscribes the specified observer.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Releases unmanaged and - optionally - managed resources.

Method Details

CanExecute() public method

Determines whether this instance can execute the specified parameter.
public CanExecute ( object parameter ) : bool
parameter object The parameter.
return bool

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

Releases unmanaged and - optionally - managed resources.
protected Dispose ( bool disposing ) : void
disposing bool true to release both managed and unmanaged resources; false to release only unmanaged resources.
return void

Execute() public method

Executes the specified parameter.
public Execute ( object parameter ) : void
parameter object The parameter.
return void

ExecuteAsync() public method

Executes asynchronously.
public ExecuteAsync ( object parameter ) : System.Threading.Tasks.Task
parameter object The parameter.
return System.Threading.Tasks.Task

ListenCanExecuteObservable() public method

Listens the can execute observable.
public ListenCanExecuteObservable ( IObservable canExecuteSeq ) : IDisposable
canExecuteSeq IObservable The can execute seq.
return IDisposable

OverwriteCanExecute() public method

Overwrites the can execute logic.
public OverwriteCanExecute ( bool>.Func canExecuteFunc ) : IReactiveCommand
canExecuteFunc bool>.Func The can execute function.
return IReactiveCommand

ReactiveCommand() public method

Initializes a new instance of the ReactiveCommand class.
public ReactiveCommand ( bool canExecute = false ) : System
canExecute bool if set to true [can execute].
return System

Subscribe() public method

Subscribes the specified observer.
public Subscribe ( IObserver observer ) : IDisposable
observer IObserver The observer.
return IDisposable