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