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); }
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); }
public static CollectionProducer <T> Consumes <T>(this CollectionProducer <T> producer, Consumes <T> consumer) where T : class { producer.Attach(consumer); return(producer); }