Beispiel #1
0
 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);
 }
Beispiel #2
0
 public AOPAttribute(EAOPStatus usage, Type handlerType)
 {
     Usage       = usage;
     HandlerType = handlerType;
 }
 public MyLogAttribute(EAOPStatus usage) : base(usage, typeof(MyLog))
 {
 }