示例#1
0
        public ISubscription Subscribe <TConsumer>()
            where TConsumer : IConsumer
        {
            logger.DebugFormat("Buliding consumer {0}", typeof(TConsumer).Name);
            var consumer = consumerFactory.Build <TConsumer>();

            return(Subscribe(consumer));
        }