Beispiel #1
0
 public QueueListener(QueueAdapter adapter, int interval)
     : base(adapter, interval)
 {
     _api             = new QueueApi(adapter.Source);
     _api.ReadTimeout = adapter.ReadTimeout;
     //_Listener= new ListenerQ(this, adapter);
 }
Beispiel #2
0
        internal SessionListener(QueueAdapter adapter, int interval)
        {
            if (adapter == null)
            {
                throw new ArgumentNullException("adapter");
            }
            if (adapter.Source == null)
            {
                throw new ArgumentNullException("adapter.Source");
            }
            Adapter = adapter;

            //_Owner = owner;
            _Source = adapter.Source;
            //_TransferTo = adapter.TransferTo;

            //_ServerName = channel.ServerName;
            //_QueueName = channel.Source;
            //IntervalWait = interval < MinWait ? MinWait : interval;// 1000;

            Interval        = interval;
            _ConnectTimeout = adapter.ConnectTimeout;
            _ReadTimeout    = adapter.ReadTimeout;
            _WorkerCount    = adapter.WorkerCount;
            _IsAsync        = adapter.IsAsync;
            //_Action = adapter.QueueAction;
            EnableResetEvent  = adapter.EnableResetEvent;
            EnableDynamicWait = adapter.EnableDynamicWait;
            //_ActionTransfer = adapter.AckAction;
            //_AdapterOperation = adapter.OperationType;

            //_api = new QueueApi(adapter.Source);
        }
Beispiel #3
0
        //public TopicListener(AdapterProperties[] queues)
        //    : base(queues)
        //{

        //}

        public FolderListener(QueueAdapter adapter, int interval)
            : base(adapter, interval)
        {
            _api = new FolderQueue(adapter.Source);
            //_Listener= new ListenerQ(this, adapter);
        }
Beispiel #4
0
        //public TopicListener(AdapterProperties[] queues)
        //    : base(queues)
        //{

        //}

        public TopicListener(QueueAdapter adapter, int interval)
            : base(adapter, interval)
        {
            _api = new QueueApi(adapter.Source);
            //_Listener= new ListenerQ(this, adapter);
        }