Ejemplo n.º 1
0
 private Func <IAdapter <TKey, TValue>, IObservable <IEvent> > Apply(Command.Commit <TKey, TValue> commit)
 {
     return(adapter => adapter.Commit(commit, _scheduler));
 }
Ejemplo n.º 2
0
 public IObservable <IEvent> Commit(Command.Commit <TKey, TValue> commit, IScheduler scheduler)
 {
     return(Observable
            .Start(() => _consumer.Commit(commit.ConsumeResult), scheduler)
            .SelectMany(_ => Observable.Empty <IEvent>()));
 }