예제 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MethodAdviceContext"/> class.
 /// </summary>
 /// <param name="methodAdvice">The method advice.</param>
 /// <param name="targetMethod">The target method.</param>
 /// <param name="target">The target.</param>
 /// <param name="targetType">Type of the target.</param>
 /// <param name="parameters">The parameters.</param>
 /// <param name="nextAdviceContext">The next advice context.</param>
 protected MethodAdviceContext(IMethodAdvice methodAdvice, MethodBase targetMethod, object target, Type targetType, object[] parameters, AdviceContext nextAdviceContext)
     : this(methodAdvice, targetMethod, new AdviceValues(target, targetType, parameters), nextAdviceContext)
 {
 }
예제 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MethodAdviceContext" /> class.
 /// </summary>
 /// <param name="methodAdvice">The method advice.</param>
 /// <param name="targetMethod">The target method.</param>
 /// <param name="adviceValues">The call values.</param>
 /// <param name="nextAdviceContext">The next advice context.</param>
 internal MethodAdviceContext(IMethodAdvice methodAdvice, MethodBase targetMethod, AdviceValues adviceValues, AdviceContext nextAdviceContext)
     : base(adviceValues, nextAdviceContext)
 {
     _methodAdvice = methodAdvice;
     TargetMethod = targetMethod;
 }
예제 #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MethodAdviceContext" /> class.
 /// </summary>
 /// <param name="methodAdvice">The method advice.</param>
 /// <param name="targetMethod">The target method.</param>
 /// <param name="adviceValues">The call values.</param>
 /// <param name="nextAdviceContext">The next advice context.</param>
 internal MethodAdviceContext(IMethodAdvice methodAdvice, MethodBase targetMethod, AdviceValues adviceValues, AdviceContext nextAdviceContext)
     : base(adviceValues, nextAdviceContext)
 {
     _methodAdvice = methodAdvice;
     TargetMethod  = targetMethod;
 }