コード例 #1
0
 public static bool HasInterceptor <T>(IAspectConfigureOption <IInterceptor> aspectConfigure, MethodInfo method)
     where T : class, IInterceptor
 {
     return(aspectConfigure.Any(config => (config(method) as T) != null));
 }
コード例 #2
0
 public static bool IsIgnored(IAspectConfigureOption <bool> ignores, MethodInfo method)
 {
     return(ignores.Any(configure => configure(method)));
 }