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