static void Main(string[] args) { IBusinessModule module = new BusinessModule(); module.Method1(); Console.WriteLine("---------------"); module = new BusinessModuleProxy(); module.Method1(); }
public void Method1() { Console.WriteLine("BusinessModuleProxy before"); _realObject.Method1(); Console.WriteLine("BusinessModuleProxy after"); }
public void Method1() { WriteLine($"{nameof(Method1)} begin!"); _bm.Method1(); WriteLine($"{nameof(Method1)} end!"); }