예제 #1
0
 public void AttachBehavior(IQueueBehavior <T> behavior)
 {
     if (behavior != null)
     {
         _behaviors.Add(behavior);
     }
     behavior?.Attach(this);
 }
예제 #2
0
        public void AttachBehavior(IQueueBehavior <T> behavior)
        {
            if (behavior == null)
            {
                return;
            }

            _behaviors.Add(behavior);
            behavior.Attach(this);
        }