Пример #1
0
        public static void RemoveTarget(IMessagingTarget target)
        {
            if (target == null)
            {
                throw new ArgumentNullException("target");
            }

            targetList.Remove(target);
        }
Пример #2
0
        public static bool IsTarget(IMessagingTarget target)
        {
            if (target == null)
            {
                throw new ArgumentNullException("target");
            }

            return(targetList.Any(x => x == target));
        }