Exemplo n.º 1
0
 public static ISingle <T> RetryWhen <T>(this ISingle <T> source,
                                         Func <IPublisher <Exception>, IPublisher <object> > whenFunction)
 {
     return(source.ToPublisher().RetryWhen(whenFunction).ToSingle());
 }
Exemplo n.º 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());
 }
Exemplo n.º 3
0
 public static IPublisher <T> RepeatWhen <T>(this ISingle <T> source,
                                             Func <IPublisher <object>, IPublisher <object> > whenFunction)
 {
     return(source.ToPublisher().RepeatWhen(whenFunction));
 }
Exemplo n.º 4
0
 public static IPublisher <T> Repeat <T>(this ISingle <T> source, Func <bool> shouldRepeat)
 {
     return(source.ToPublisher().Repeat(shouldRepeat));
 }
Exemplo n.º 5
0
 public static IPublisher <T> Repeat <T>(this ISingle <T> source, long times)
 {
     return(source.ToPublisher().Repeat(times));
 }
Exemplo n.º 6
0
 public static IPublisher <T> Repeat <T>(this ISingle <T> source)
 {
     return(source.ToPublisher().Repeat());
 }