コード例 #1
0
 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;
 }
コード例 #3
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;
 }
コード例 #4
0
 public SimpleAroundInvokeProvider(
     IAroundInvoke around,
     Predicate <IInvocationInfo> predicate)
 {
     _around   = around;
     Predicate = predicate;
 }
コード例 #5
0
 public SampleAroundInvokeProvider(IAroundInvoke aroundInvoke)
 {
     _aroundInvoke = aroundInvoke;
 }
コード例 #6
0
 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;
 }
コード例 #8
0
 public SimpleAroundInvokeProvider(IAroundInvoke around)
 {
     _around = around;
 }
コード例 #9
0
 public SimpleAroundInvokeProvider(IAroundInvoke around)
 {
     _around = around;
 }