예제 #1
0
 public static CollectionProducer <T> Consumes <T>(this CollectionProducer <T> producer, Action <T> @delegate, Consumes <T> forwardTo) where T : class
 {
     producer.Attach(new DelegatingConsumer <T>(@delegate, forwardTo));
     return(producer);
 }
예제 #2
0
 public static CollectionProducer <T> Consumes <T>(this CollectionProducer <T> producer, IEnumerable <Consumes <T> > consumers) where T : class
 {
     producer.Attach(new CompositeConsumer <T>(consumers));
     return(producer);
 }
예제 #3
0
 public static CollectionProducer <T> Consumes <T>(this CollectionProducer <T> producer, Consumes <T> consumer) where T : class
 {
     producer.Attach(consumer);
     return(producer);
 }