private IEnumerable <IAOPHandler> GetHandlers(MemberInfo member, EAOPStatus usage) { if (!_handlers.TryGetValue(member, out Dictionary <EAOPStatus, List <IAOPHandler> > dict)) { return(null); } if (!dict.TryGetValue(usage, out List <IAOPHandler> handlers)) { return(null); } return(handlers); }
public AOPAttribute(EAOPStatus usage, Type handlerType) { Usage = usage; HandlerType = handlerType; }
public MyLogAttribute(EAOPStatus usage) : base(usage, typeof(MyLog)) { }