public static RedundantCollection <T, TOuter> JoinIfEmpty <T, TOuter>(this RedundantCollection <T, TOuter> redundantCollection, IEnumerable <TOuter> joinedCollection,
                                                                       Func <T, TOuter, bool> joinPredicate = null)
 {
     redundantCollection.JoinIfEmpty(joinedCollection, joinPredicate);
     return(redundantCollection);
 }
Exemplo n.º 2
0
 private IObservable <RedundantCollection <TParam, TResult> > FetchDataAndJoin <TResult, TParam>(Func <IVideoItemsStoreReader, IEnumerable <TParam>, IObservable <IList <TResult> > > fetchData, Action <IVideoItemsStoreWriter, IList <TResult> > writeData, RedundantCollection <TParam, TResult> collection)
 {
     return(fetchData(_externalStoreReader, collection.OnlyNotJoined)
            .Do(e => writeData(_localStoreWriter, e))
            .Select(e => collection.JoinIfEmpty(e)));
 }