Beispiel #1
0
 /// <summary>
 /// 构建一个动态代理
 /// </summary>
 /// <param name="target"></param>
 public InterceptingRealProxy(object target)
     : base(target.GetType())
 {
     this.target  = target;
     typeName     = target.GetType().FullName;
     interceptors = new InterceptionPipeline();
 }
Beispiel #2
0
 /// <summary>
 /// 构建一个动态代理
 /// </summary>
 /// <param name="target">代理的原始对象</param>
 internal InterceptingRealProxy(object target)
     : base(target.GetType())
 {
     this.target  = target;
     interceptors = new InterceptionPipeline();
 }