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