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