public string GetOrderAddress() { Console.WriteLine($"开始执行{nameof(GetOrderAddress)}"); var getValue = _order.GetOrderAddress(); Console.WriteLine($"结束执行{nameof(GetOrderAddress)}"); return(getValue); }
public void TestStaticInterfaceProxy() { IStaticOrder order = new StaticOrder(); order.GetOrderAddress(); order.GetOrderItemCount(); IStaticOrder orderProxy = new StaticInterfaceProxy(); orderProxy.GetOrderAddress(); orderProxy.GetOrderItemCount(); }