Exemplo n.º 1
0
        static void Main(string[] args)
        {
            IBusinessModule module = new BusinessModule();
            module.Method1();

            Console.WriteLine("---------------");

            module = new BusinessModuleProxy();
            module.Method1();
        }
Exemplo n.º 2
0
        static void Main(string[] args)
        {
            //IBusinessModule bm = new BusinessModule();
            //bm.Method1();

            IBusinessModule bmProxy = new BusinessModuleProxy();

            bmProxy.Method1();
            ReadKey();
        }
Exemplo n.º 3
0
        static void Main(string[] args)
        {
            IBusinessModule module = new BusinessModule();

            module.Method1();

            Console.WriteLine("---------------");

            module = new BusinessModuleProxy();
            module.Method1();
        }