Ejemplo n.º 1
0
 public static DelegatingObservingProducer <T> Consumes <T>(this DelegatingObservingProducer <T> producer, IProducerConsumerCollection <T> collection)
 {
     producer.Attach(new CollectionConsumer <T>(collection));
     return(producer);
 }
Ejemplo n.º 2
0
 public static DelegatingObservingProducer <T> Consumes <T>(this DelegatingObservingProducer <T> producer, Action <T> @delegate, Consumes <T> forwardTo)
 {
     producer.Attach(new DelegatingConsumer <T>(@delegate, forwardTo));
     return(producer);
 }
Ejemplo n.º 3
0
 public static DelegatingObservingProducer <T> Consumes <T>(this DelegatingObservingProducer <T> producer, IEnumerable <Consumes <T> > consumers)
 {
     producer.Attach(new CompositeConsumer <T>(consumers));
     return(producer);
 }
Ejemplo n.º 4
0
 public static DelegatingObservingProducer <T> Consumes <T>(this DelegatingObservingProducer <T> producer, Consumes <T> consumer)
 {
     producer.Attach(consumer);
     return(producer);
 }