Esempio n. 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;
            }
        }
Esempio n. 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));
        }