Inheritance: IMagicService
コード例 #1
0
        public static Consumer GetConsumerInstance()
        {
            var magicService     = new MagicService();
            var loggingDecorator = new LoggingDecorator(magicService);

            var consumer = new Consumer(loggingDecorator);

            return(consumer);
        }
コード例 #2
0
        public static Consumer GetConsumerInstance()
        {
            var magicService = new MagicService();
            var loggingDecorator = new LoggingDecorator(magicService);

            var consumer = new Consumer(loggingDecorator);

            return consumer;
        }