상속: 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;
        }