Esempio n. 1
0
        static void Main(string[] args)
        {
            var client = new ComponentClient(new ComponentDecorator(new ConcreteComponent()));
            client.Process();

            Console.ReadKey();
        }
Esempio n. 2
0
        static void Main(string[] args)
        {
            var client = new ComponentClient(null);
            client.Run();

            Console.ReadKey();
        }
Esempio n. 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();
        }
Esempio n. 4
0
        static void Main(string[] args)
        {
            var client = new ComponentClient(new ProfilingComponent(new SlowComponent()));
            client.Run();

            Console.ReadKey();
        }
Esempio n. 5
0
        static void Main(string[] args)
        {
            var client = new ComponentClient(new ProfilingComponent(new SlowComponent()));

            client.Run();

            Console.ReadKey();
        }
        static void Main(string[] args)
        {
            var client = new ComponentClient(new ComponentDecorator(new ConcreteComponent()));

            client.Process();

            Console.ReadKey();
        }
Esempio n. 7
0
        static void Main(string[] args)
        {
            var client = new ComponentClient(null);

            client.Run();

            Console.ReadKey();
        }
        static void Main(string[] args)
        {
            var client = new ComponentClient(new ProfilingComponent(new SlowComponent(), new LoggingStopwatch(new StopwatchAdapter(new Stopwatch()))));

            client.Run();

            Console.ReadKey();
        }
Esempio n. 9
0
        static void Main(string[] args)
        {
            var client = new ComponentClient(new Lazy <IComponent>(() => new ConcreteComponent()));

            client.Run();
        }
Esempio n. 10
0
 static void Main(string[] args)
 {
     var client = new ComponentClient(new Lazy<IComponent>(() => new ConcreteComponent()));
     client.Run();
 }