public override bool CanAspect(MethodReflector method) { return(method.IsDefined <CacheAttribute>()); // 限制只对有缓存定义的方法起效 }
public override bool CanAspect(MethodReflector method) { return(method.IsDefined <HttpMethodAttribute>()); }
public override bool CanAspect(MethodReflector method) { return(method.IsDefined <AbstractPolicyAttribute>()); }
public bool AspectCore_Reflector_IsDefined() { return(_reflector.IsDefined(typeof(Attribute3))); }