예제 #1
0
 public static ISingle <T> RetryWhen <T>(this ISingle <T> source,
                                         Func <IPublisher <Exception>, IPublisher <object> > whenFunction)
 {
     return(source.ToPublisher().RetryWhen(whenFunction).ToSingle());
 }
예제 #2
0
 public static ISingle <T> RetryWhen <T>(this ISingle <T> source,
                                         Func <IObservable <Exception>, IObservable <object> > whenFunction)
 {
     return(source.ToPublisher().RetryWhen(f => whenFunction(f.ToObservable()).ToPublisher()).ToSingle());
 }
예제 #3
0
 public static IPublisher <T> RepeatWhen <T>(this ISingle <T> source,
                                             Func <IPublisher <object>, IPublisher <object> > whenFunction)
 {
     return(source.ToPublisher().RepeatWhen(whenFunction));
 }
예제 #4
0
 public static IPublisher <T> Repeat <T>(this ISingle <T> source, Func <bool> shouldRepeat)
 {
     return(source.ToPublisher().Repeat(shouldRepeat));
 }
예제 #5
0
 public static IPublisher <T> Repeat <T>(this ISingle <T> source, long times)
 {
     return(source.ToPublisher().Repeat(times));
 }
예제 #6
0
 public static IPublisher <T> Repeat <T>(this ISingle <T> source)
 {
     return(source.ToPublisher().Repeat());
 }