public static void AopTest() { try { // Create AOP proxy using Spring.NET IoC container. ICommand command = serviceUtil.GetObject <ICommand>(); #region 反射测试 decimal resultA = command.GetBasicType("186a0abfbf474b5aa33c16a91b65089c", decimal.MaxValue, default(DateTime)); ResultInfo <decimal> resultB = command.GetResultInfoBasicType("186a0abfbf474b5aa33c16a91b65089c", decimal.MaxValue, default(DateTime)); Customer resultC = command.GetEntity(GetBusinAppList().First <BusinApp>(), "202301"); ResultInfo <Customer> resultD = command.GetResultInfoEntity(GetBusinAppList().First <BusinApp>(), "202301"); IList <Customer> resultE = command.GetList(GetBusinAppList(), "202301"); ResultInfo <IList <Customer> > resultF = command.GetResultInfoList(GetBusinAppList(), "202301"); #endregion #region AOP测试 command.Execute(); if (command.IsUndoCapable) { command.UnExecute(); } command.AnotherExecute(); #endregion } catch (Exception ex) { Console.Out.WriteLine(); Console.Out.WriteLine(ex); } finally { Console.Out.WriteLine(); Console.Out.WriteLine("--- hit <return> to quit ---"); Console.ReadLine(); } }