예제 #1
0
        /// <summary>
        /// AddQueue adds a given queue config to the general bucket notification config
        /// </summary>
        /// <param name="queueConfig"></param>
        public void AddQueue(QueueConfig queueConfig)
        {
            bool isQueueFound = this.QueueConfigs.Exists(t => t.Equals(queueConfig));

            if (!isQueueFound)
            {
                this.QueueConfigs.Add(queueConfig);
                return;
            }
        }
예제 #2
0
        // Implement equality for this object
        public override bool Equals(object obj)
        {
            QueueConfig other = (QueueConfig)obj;

            // If parameter is null return false.
            if (other == null)
            {
                return(false);
            }
            return(other.Queue.Equals(this.Queue));
        }