public Pipeline(IAmADataSource <T> pump, IAmADataSink <T> sink = null) { Pump = pump; if (sink != null) { this.sink = sink; } }
public Pipeline(IAmADataSource <T> pump, IAmADataSink <T> sink, IEnumerable <IAmAFilter <T> > filters) { this.pump = pump; this.sink = sink; this.filters = filters; }