摘要: using System;namespace SharpRush.AOP{ /**//// /// AOP对象 /// public abstract class AOPObject : ContextBoundObject { }} 阅读全文
posted @ 2005-08-16 16:26 Martin XJ 阅读(264) 评论(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 阅读(373) 评论(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 阅读(298) 评论(0) 推荐(0) 编辑
摘要: using(TransactionContextcontext=TransactionContext.Instance()){CustomerEntitycustomer=newCustomerEntity(cutomerGuid);customer.CustomerName="test";customer.Save();} 阅读全文
posted @ 2005-08-16 16:17 Martin XJ 阅读(921) 评论(0) 推荐(0) 编辑
摘要: //aspectcode:[AttributeUsage(AttributeTargets.Class)]publicclassSecurityAspectAttribute:AOPAttribute{publicSecurityAspectAttribute(){}publicoverridevoidPreProcess(System.Runtime.Remoting.Messaging.IMe... 阅读全文
posted @ 2005-08-16 16:13 Martin XJ 阅读(861) 评论(0) 推荐(0) 编辑