示例#1
0
        public Dictionary <string, Action <EventX> > getEventInterests(InjectEventType type)
        {
            if (_eventInterests == null)
            {
                _eventInterests = new Dictionary <InjectEventType, Dictionary <string, Action <EventX> > >();
                MVCEventAttribute.CollectionEventInterests(this, _eventInterests);
            }
            Dictionary <string, Action <EventX> > e;

            if (_eventInterests.TryGetValue(type, out e) == false)
            {
                e = new Dictionary <string, Action <EventX> >();
                _eventInterests.Add(type, e);
            }
            return(e);
        }
 public MVCEventAttribute(InjectEventType injectEventType, params string[] eventList)
 {
     this.injectEventType = injectEventType;
     this.eventList       = eventList;
 }