Beispiel #1
0
 /// <summary>
 /// Turns the computation into an observable stream
 /// </summary>
 /// <typeparam name="A">Bound type</typeparam>
 /// <typeparam name="R">Returned observable bound type</typeparam>
 /// <param name="self">This</param>
 /// <param name="Some">Function to call when the operation succeeds</param>
 /// <param name="None">Function to call when the operation succeeds but returns no value</param>
 /// <param name="Fail">Function to call when the operation fails</param>
 /// <returns>An observable that represents the result of Succ or Fail</returns>
 public static IObservable <R> matchObservable <A, R>(this TryOptionAsync <A> self, Func <A, R> Some, Func <IObservable <R> > None, Func <Exception, IObservable <R> > Fail) =>
 self.MatchObservable(Some, None, Fail);
Beispiel #2
0
 /// <summary>
 /// Turns the computation into an observable stream
 /// </summary>
 /// <typeparam name="A">Bound type</typeparam>
 /// <typeparam name="B">Returned observable bound type</typeparam>
 /// <param name="self">This</param>
 /// <param name="Some">Function to call when the operation succeeds</param>
 /// <param name="None">Function to call when the operation succeeds but returns no value</param>
 /// <param name="Fail">Function to call when the operation fails</param>
 /// <returns>An observable that represents the result of Succ or Fail</returns>
 public static IObservable <B> matchObservable <A, B>(TryOptionAsync <A> self, Func <A, IObservable <B> > Some, Func <IObservable <B> > None, Func <Exception, B> Fail) =>
 self.MatchObservable(Some, None, Fail);