protected override TStream CreateOutputStream(ThroughSqlCommandArgs <TIn, TStream> args) { var dbContextStream = args.SqlConnectionStream.Observable.First(); var ret = args.SourceStream.Observable .CombineWithLatest(dbContextStream, (i, c) => new { Connection = c, Item = i }, true) .Do(i => ProcessItem(i.Item, i.Connection)) .Map(i => i.Item); return(base.CreateMatchingStream(ret, args.SourceStream)); }
public ThroughSqlCommandStreamNode(string name, ThroughSqlCommandArgs <TIn, TStream> args) : base(name, args) { }