Example #1
0
        public void AddBefore(BeforeAction <T> action)
        {
            if (before.Exists(a => a.IsSame(action)))
            {
                throw EventHandlerAlreadyExistsException.CreateFromKey(action.Name);
            }

            before.Add(action);
        }
Example #2
0
 public bool IsSame(BeforeAction <T> action)
 {
     return(Signature.IsSame(action.Signature));
 }