public static void RemoveTarget(IMessagingTarget target) { if (target == null) { throw new ArgumentNullException("target"); } targetList.Remove(target); }
public static bool IsTarget(IMessagingTarget target) { if (target == null) { throw new ArgumentNullException("target"); } return(targetList.Any(x => x == target)); }