摘要: using System;namespace SharpRush.AOP{ /**//// /// AOP对象 /// public abstract class AOPObject : ContextBoundObject { }} 阅读全文
posted @ 2005-08-16 16:26 Martin XJ 阅读(263) 评论(0) 推荐(0) 编辑
摘要: using System;using SharpRush.AOP.Support;using System.Runtime.Remoting;using System.Runtime.Remoting.Proxies;using System.Runtime.Remoting.Messaging;using System.Runtime.Remoting.Activation;using S... 阅读全文
posted @ 2005-08-16 16:26 Martin XJ 阅读(371) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Runtime.Remoting;using System.Runtime.Remoting.Proxies;using System.Runtime.Remoting.Messaging;using System.Runtime.Remoting.Activation;using System.Runtime.Remoting.Service... 阅读全文
posted @ 2005-08-16 16:25 Martin XJ 阅读(294) 评论(0) 推荐(0) 编辑
摘要: using(TransactionContextcontext=TransactionContext.Instance()){CustomerEntitycustomer=newCustomerEntity(cutomerGuid);customer.CustomerName="test";customer.Save();} 阅读全文
posted @ 2005-08-16 16:17 Martin XJ 阅读(920) 评论(0) 推荐(0) 编辑
摘要: //aspectcode:[AttributeUsage(AttributeTargets.Class)]publicclassSecurityAspectAttribute:AOPAttribute{publicSecurityAspectAttribute(){}publicoverridevoidPreProcess(System.Runtime.Remoting.Messaging.IMe... 阅读全文
posted @ 2005-08-16 16:13 Martin XJ 阅读(860) 评论(0) 推荐(0) 编辑