示例#1
0
文件: IJointPoint.cs 项目: erhan0/aop
 protected JointPointBase(AdviceCallback callback, object thisInstance, object target, object[] args)
 {
     This      = thisInstance;
     Target    = target;
     this.args = args;
     _callback = callback;
 }
示例#2
0
文件: IJointPoint.cs 项目: erhan0/aop
 public static StaticPart ForCallMethod(AdviceInvoker advice, AdviceCallback callback, MethodInfo callingMethod, MethodInfo method)
 {
     return(new CallMethodJointPoint.StaticPart(method, advice, callback, callingMethod));
 }
示例#3
0
文件: IJointPoint.cs 项目: erhan0/aop
 public static StaticPart ForCallFieldSet(AdviceInvoker advice, AdviceCallback callback, MethodInfo callingMethod, FieldInfo field)
 {
     return(new SetFieldJointPoint.StaticPart(field, advice, callback, callingMethod));
 }
示例#4
0
文件: IJointPoint.cs 项目: erhan0/aop
 public static StaticPart ForPropertySet(AdviceInvoker advice, AdviceCallback callback, MethodInfo method)
 {
     return(new PropertySetJointPoint.StaticPart(method.DeclaringType.GetProperties().First(m => m.GetSetMethod(true) == method), advice, callback));
 }
示例#5
0
文件: IJointPoint.cs 项目: erhan0/aop
 protected StaticPart(AdviceInvoker advice, AdviceCallback callback)
 {
     Advice   = advice;
     Callback = callback;
 }
示例#6
0
 public MethodJointPoint(MethodInfo method, object instance, object[] args, AdviceCallback callback) : base(method, callback, instance, args)
 {
     Method = method;
 }
示例#7
0
 public StaticPart(MethodInfo method, AdviceInvoker advice, AdviceCallback adviceCallback) : base(advice, adviceCallback)
 {
     _method = method;
 }
示例#8
0
 public PropertySetJointPoint(PropertyInfo property, AdviceCallback callback, object instance, object[] args)
     : base(property, callback, instance, args)
 {
 }
示例#9
0
 public StaticPart(PropertyInfo property, AdviceInvoker advice, AdviceCallback callback) : base(advice, callback)
 {
     this.property = property;
 }
示例#10
0
 public StaticPart(FieldInfo field, AdviceInvoker advice, AdviceCallback callback, MethodInfo callingMethod) : base(advice, callback)
 {
     _callingMethod = callingMethod;
     _field         = field;
 }
示例#11
0
 protected PropertyJointPoint(PropertyInfo property, AdviceCallback callback, object thisInstance, object[] args)
     : base(property, callback, thisInstance, args)
 {
     Property = property;
 }
示例#12
0
 public GetFieldJointPoint(FieldInfo field, AdviceCallback callback, MethodInfo callingMethod, object thisInstance, object target, object[] args)
     : base(field, callback, callingMethod, thisInstance, target, args)
 {
     Field = field;
 }
示例#13
0
 protected MemberJointPointBase(MemberInfo member, AdviceCallback callback, object thisInstance, object[] args)
     : base(callback, thisInstance, null, args)
 {
     _member = member;
 }
示例#14
0
 protected CallJointPointBase(MemberInfo targetMember, AdviceCallback callback, MethodInfo callingMethod, object thisInstance, object target, object[] args)
     : base(callback, thisInstance, target, args)
 {
     _targetMember = targetMember;
     CallingMethod = callingMethod;
 }
示例#15
0
 public StaticPart(MethodInfo method, AdviceInvoker advice, AdviceCallback callback, MethodInfo callingMethod)
     : base(advice, callback)
 {
     _method        = method;
     _callingMethod = callingMethod;
 }
示例#16
0
 public CallMethodJointPoint(MethodInfo method, AdviceCallback callback, MethodInfo callingMethod, object thisInstance, object target, object[] args)
     : base(method, callback, callingMethod, thisInstance, target, args)
 {
     Method = method;
 }