Пример #1
0
 public static ObservingProducer <T> Consumes <T>(this ObservingProducer <T> producer, IProducerConsumerCollection <T> collection)
 {
     producer.Attach(new CollectionConsumer <T>(collection));
     return(producer);
 }
Пример #2
0
 public static ObservingProducer <T> Consumes <T>(this ObservingProducer <T> producer, IEnumerable <Consumes <T> > consumers)
 {
     producer.Attach(new CompositeConsumer <T>(consumers));
     return(producer);
 }
Пример #3
0
 public static ObservingProducer <T> Consumes <T>(this ObservingProducer <T> producer, Consumes <T> consumer)
 {
     producer.Attach(consumer);
     return(producer);
 }
Пример #4
0
 public static ObservingProducer <T> Consumes <T>(this ObservingProducer <T> producer, Action <T> @delegate, Consumes <T> forwardTo)
 {
     producer.Attach(new DelegatingConsumer <T>(@delegate, forwardTo));
     return(producer);
 }
 public void Attach(Consumes <T> consumer)
 {
     _producer.Attach(consumer);
 }