C# Класс MVVMSidekick.Reactive.ReactiveCommand

Reactive Command
Наследование: IReactiveCommand, IDisposable
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void

Releases unmanaged and - optionally - managed resources.

Описание методов

CanExecute() публичный Метод

Determines whether this instance can execute the specified parameter.
public CanExecute ( object parameter ) : bool
parameter object The parameter.
Результат bool

Dispose() публичный Метод

public Dispose ( ) : void
Результат void

Dispose() защищенный Метод

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.
Результат void

Execute() публичный Метод

Executes the specified parameter.
public Execute ( object parameter ) : void
parameter object The parameter.
Результат void

ExecuteAsync() публичный Метод

Executes asynchronously.
public ExecuteAsync ( object parameter ) : System.Threading.Tasks.Task
parameter object The parameter.
Результат System.Threading.Tasks.Task

ListenCanExecuteObservable() публичный Метод

Listens the can execute observable.
public ListenCanExecuteObservable ( IObservable canExecuteSeq ) : IDisposable
canExecuteSeq IObservable The can execute seq.
Результат IDisposable

OverwriteCanExecute() публичный Метод

Overwrites the can execute logic.
public OverwriteCanExecute ( bool>.Func canExecuteFunc ) : IReactiveCommand
canExecuteFunc bool>.Func The can execute function.
Результат IReactiveCommand

ReactiveCommand() публичный Метод

Initializes a new instance of the ReactiveCommand class.
public ReactiveCommand ( bool canExecute = false ) : System
canExecute bool if set to true [can execute].
Результат System

Subscribe() публичный Метод

Subscribes the specified observer.
public Subscribe ( IObserver observer ) : IDisposable
observer IObserver The observer.
Результат IDisposable