Exemplo n.º 1
0
        static void Main(string[] args)
        {
            var client = new ComponentClient(new ProfilingComponent(new SlowComponent(), new LoggingStopwatch(new StopwatchAdapter(new Stopwatch()))));
            client.Run();

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

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

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

            client.Run();

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

            client.Run();

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

            client.Run();

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

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