C# Class MVVMSidekick.Reactive.ReactiveCommand

Reactive Command
Inheritance: IReactiveCommand, IDisposable
Afficher le fichier Open project: waynebaby/MVVM-Sidekick Class Usage Examples

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Releases unmanaged and - optionally - managed resources.

Method Details

CanExecute() public méthode

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

Dispose() public méthode

public Dispose ( ) : void
Résultat void

Dispose() protected méthode

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.
Résultat void

Execute() public méthode

Executes the specified parameter.
public Execute ( object parameter ) : void
parameter object The parameter.
Résultat void

ExecuteAsync() public méthode

Executes asynchronously.
public ExecuteAsync ( object parameter ) : System.Threading.Tasks.Task
parameter object The parameter.
Résultat System.Threading.Tasks.Task

ListenCanExecuteObservable() public méthode

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

OverwriteCanExecute() public méthode

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

ReactiveCommand() public méthode

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

Subscribe() public méthode

Subscribes the specified observer.
public Subscribe ( IObserver observer ) : IDisposable
observer IObserver The observer.
Résultat IDisposable