Пример #1
0
 public static IDisposable False(this ReactiveBool reactiveBool, Action <bool> action)
 {
     return(reactiveBool
            .Where(_ => !_)
            .First()
            .Subscribe(_ => action(_)));
 }
Пример #2
0
 public static IDisposable OnTrue(this ReactiveBool reactiveBool, Action <bool> action)
 {
     return(reactiveBool
            .Where(_ => _)
            .Subscribe(_ => action(_)));
 }