private Func <IAdapter <TKey, TValue>, IObservable <IEvent> > Apply(Command.Commit <TKey, TValue> commit)
 {
     return(adapter => adapter.Commit(commit, _scheduler));
 }
示例#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>()));
 }