Exemple #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="queue_server"></param>
        /// <param name="e"></param>
        public void Insert(QAgency queue_server, ReceiveCompletedEventArgs e)
        {
            var _queuePath = QWriter.QueuePath(queue_server);

            Publishers.Add(_queuePath, queue_server);

            if (e != null && QInsertEvents != null)
            {
                QInsertEvents(this, e);
            }
        }
Exemple #2
0
        //-----------------------------------------------------------------------------------------------------------------------------
        //
        //-----------------------------------------------------------------------------------------------------------------------------
        private void Remove(QAgency queue_server, ReceiveCompletedEventArgs e)
        {
            var _queuePath = QWriter.QueuePath(queue_server);

            if (Publishers.Contains(_queuePath) == true)
            {
                Publishers.Remove(_queuePath);
            }

            if (e != null && QRemoveEvents != null)
            {
                QRemoveEvents(this, e);
            }
        }
Exemple #3
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="queue_server"></param>
        /// <returns></returns>
        public Guid Certkey(QAgency queue_server)
        {
            var _result = Guid.Empty;

            var _queuePath = QWriter.QueuePath(queue_server);

            if (Publishers.Contains(_queuePath) == true)
            {
                QAgency _agency = Publishers.GetData(_queuePath) as QAgency;
                _result = _agency.Certkey;
            }

            return(_result);
        }