public void SetQueueNames(params string[] queueNames) { if (queueNames == null) { throw new ArgumentNullException(nameof(queueNames)); } QueueNames.Clear(); QueueNames.AddRange(queueNames); }