コード例 #1
0
        static void Main(string[] args)
        {
            var client = new ComponentClient(new ComponentDecorator(new ConcreteComponent()));
            client.Process();

            Console.ReadKey();
        }
コード例 #2
0
        static void Main(string[] args)
        {
            var client = new ComponentClient(null);
            client.Run();

            Console.ReadKey();
        }
コード例 #3
0
        static void Main(string[] args)
        {
            var client = new ComponentClient(new ProfilingComponent(new SlowComponent(), new LoggingStopwatch(new StopwatchAdapter(new Stopwatch()))));
            client.Run();

            Console.ReadKey();
        }
コード例 #4
0
        static void Main(string[] args)
        {
            var client = new ComponentClient(new ProfilingComponent(new SlowComponent()));
            client.Run();

            Console.ReadKey();
        }
コード例 #5
0
        static void Main(string[] args)
        {
            var client = new ComponentClient(new ProfilingComponent(new SlowComponent()));

            client.Run();

            Console.ReadKey();
        }
コード例 #6
0
        static void Main(string[] args)
        {
            var client = new ComponentClient(new ComponentDecorator(new ConcreteComponent()));

            client.Process();

            Console.ReadKey();
        }
コード例 #7
0
        static void Main(string[] args)
        {
            var client = new ComponentClient(null);

            client.Run();

            Console.ReadKey();
        }
コード例 #8
0
        static void Main(string[] args)
        {
            var client = new ComponentClient(new ProfilingComponent(new SlowComponent(), new LoggingStopwatch(new StopwatchAdapter(new Stopwatch()))));

            client.Run();

            Console.ReadKey();
        }
コード例 #9
0
        static void Main(string[] args)
        {
            var client = new ComponentClient(new Lazy <IComponent>(() => new ConcreteComponent()));

            client.Run();
        }
コード例 #10
0
 static void Main(string[] args)
 {
     var client = new ComponentClient(new Lazy<IComponent>(() => new ConcreteComponent()));
     client.Run();
 }