public static StaticPart ForCallMethod(AdviceInvoker advice, AdviceCallback callback, MethodInfo callingMethod, MethodInfo method) { return(new CallMethodJointPoint.StaticPart(method, advice, callback, callingMethod)); }
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)); }
public static StaticPart ForCallFieldSet(AdviceInvoker advice, AdviceCallback callback, MethodInfo callingMethod, FieldInfo field) { return(new SetFieldJointPoint.StaticPart(field, advice, callback, callingMethod)); }
protected StaticPart(AdviceInvoker advice, AdviceCallback callback) { Advice = advice; Callback = callback; }
public StaticPart(MethodInfo method, AdviceInvoker advice, AdviceCallback adviceCallback) : base(advice, adviceCallback) { _method = method; }
public StaticPart(PropertyInfo property, AdviceInvoker advice, AdviceCallback callback) : base(advice, callback) { this.property = property; }
public StaticPart(FieldInfo field, AdviceInvoker advice, AdviceCallback callback, MethodInfo callingMethod) : base(advice, callback) { _callingMethod = callingMethod; _field = field; }
public StaticPart(MethodInfo method, AdviceInvoker advice, AdviceCallback callback, MethodInfo callingMethod) : base(advice, callback) { _method = method; _callingMethod = callingMethod; }