Ejemplo n.º 1
0
        public string GetOrderAddress()
        {
            Console.WriteLine($"开始执行{nameof(GetOrderAddress)}");
            var getValue = _order.GetOrderAddress();

            Console.WriteLine($"结束执行{nameof(GetOrderAddress)}");
            return(getValue);
        }
Ejemplo n.º 2
0
        public void TestStaticInterfaceProxy()
        {
            IStaticOrder order = new StaticOrder();

            order.GetOrderAddress();
            order.GetOrderItemCount();


            IStaticOrder orderProxy = new StaticInterfaceProxy();

            orderProxy.GetOrderAddress();
            orderProxy.GetOrderItemCount();
        }