예제 #1
0
        protected internal virtual void validateInput()
        {
            EnsureUtil.ensureNotNull("workerId", workerId);
            EnsureUtil.ensureGreaterThanOrEqual("maxResults", maxResults, 0);

            foreach (TopicFetchInstruction instruction in fetchInstructions.Values)
            {
                EnsureUtil.ensureNotNull("topicName", instruction.TopicName);
                EnsureUtil.ensurePositive("lockTime", instruction.LockDuration);
            }
        }