public SimpleAroundInvokeProvider(
     IAroundInvoke around,
     Predicate<IInvocationInfo> predicate)
 {
     _around = around;
     Predicate = predicate;
 }
示例#2
0
 /// <summary>
 ///     Initializes the <see cref="AroundInvokeAdapter" /> class.
 /// </summary>
 /// <param name="getTarget">The functor responsible for obtaining the target instance.</param>
 /// <param name="methodInvoke">The method invoker.</param>
 /// <param name="aroundInvoke">The target <see cref="IAroundInvoke" /> instance.</param>
 internal AroundInvokeAdapter(Func <object> getTarget, IMethodInvoke <MethodInfo> methodInvoke,
                              IAroundInvoke aroundInvoke)
     : base(methodInvoke)
 {
     _wrapper   = aroundInvoke;
     _getTarget = getTarget;
 }
 /// <summary>
 /// Initializes the <see cref="AroundInvokeAdapter"/> class.
 /// </summary>
 /// <param name="getTarget">The functor responsible for obtaining the target instance.</param>
 /// <param name="methodInvoke">The method invoker.</param>
 /// <param name="aroundInvoke">The target <see cref="IAroundInvoke"/> instance.</param>
 internal AroundInvokeAdapter(Func<object> getTarget, IMethodInvoke<MethodInfo> methodInvoke,
                              IAroundInvoke aroundInvoke)
     : base(methodInvoke)
 {
     _wrapper = aroundInvoke;
     _getTarget = getTarget;
 }
示例#4
0
 public SimpleAroundInvokeProvider(
     IAroundInvoke around,
     Predicate <IInvocationInfo> predicate)
 {
     _around   = around;
     Predicate = predicate;
 }
示例#5
0
 public SampleAroundInvokeProvider(IAroundInvoke aroundInvoke)
 {
     _aroundInvoke = aroundInvoke;
 }
 public SampleAroundInvokeProvider(IAroundInvoke aroundInvoke)
 {
     _aroundInvoke = aroundInvoke;
 }
示例#7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SimpleAroundInvokeProvider"/> class.
 /// </summary>
 /// <param name="around">The around invoke interceptor.</param>
 public SimpleAroundInvokeProvider(IAroundInvoke around)
 {
     _around = around;
     MethodInvokePredicate = ShouldReplace;
 }
 public SimpleAroundInvokeProvider(IAroundInvoke around)
 {
     _around = around;
 }
示例#9
0
 public SimpleAroundInvokeProvider(IAroundInvoke around)
 {
     _around = around;
 }