Esempio n. 1
0
 public static IInterceptionConfiguration InterceptAll(this FluentAspectOptions options)
 => options.Intercept(m => true);
Esempio n. 2
0
 public static IInterceptionConfiguration InterceptMethod(this FluentAspectOptions options,
                                                          Func <MethodInfo, bool> methodPredict)
 {
     return(options.Intercept(invocation => methodPredict(invocation.Method ?? invocation.ProxyMethod)));
 }