createFromStream<TParam, TResult> method
Creates a RxCommand from an "one time" observable. This is handy if used together with a streame generator function.
provider
: provider function that returns a new Observable that will be subscribed on the call of execute
canExecute
: observable that can bve used to enable/diable the command based on some other state change
if omitted the command can be executed always except it's already executing
Implementation
static RxCommand<TParam, TResult> createFromStream<TParam, TResult>(StreamProvider<TParam, TResult> provider, [Observable<bool> canExecute])
{
return new RxCommandStream<TParam, TResult>(provider,canExecute);
}