コード例 #1
0
        public static Produces <T> AcceptingMany <T>(this Produces <T> produces) where T : Message
        {
            if (produces == null)
            {
                throw new ArgumentNullException("produces");
            }
            var multi = new Multiplexor <T>();

            produces.AttachConsumer(multi);
            return(multi);
        }
コード例 #2
0
 public void AttachConsumer(Consumes <TOut> consumer)
 {
     _producer.AttachConsumer(consumer);
 }
コード例 #3
0
 public void AttachTo <TDerived>(Produces <TDerived> producer) where TDerived : TBase
 {
     producer.AttachConsumer(_combiner.GetConsumer <TDerived>());
 }