Inheritance: IMagicService
Exemplo n.º 1
0
        public static Consumer GetConsumerInstance()
        {
            var magicService     = new MagicService();
            var loggingDecorator = new LoggingDecorator(magicService);

            var consumer = new Consumer(loggingDecorator);

            return(consumer);
        }
Exemplo n.º 2
0
        public static Consumer GetConsumerInstance()
        {
            var magicService = new MagicService();
            var loggingDecorator = new LoggingDecorator(magicService);

            var consumer = new Consumer(loggingDecorator);

            return consumer;
        }