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