Пример #1
0
 public OpenedQueue(QueueInfo info, MessageQueue queue, string url)
 {
     if (!info.Exists)
         throw new TransportException("The queue " + info.QueueUri + " does not exists");
     this.info = info;
     this.queue = queue;
     queueUrl = url;
     queue.MessageReadPropertyFilter.SetAll();
 }
Пример #2
0
 public OpenedQueue(QueueInfo info, MessageQueue queue, string url, bool? transactional)
 {
     if (!info.Exists)
         throw new TransportException("The queue " + info.QueueUri + " does not exists");
     this.info = info;
     this.queue = queue;
     queueUrl = url;
     this.transactional = transactional ?? (info.IsLocal == false || queue.Transactional);
     queue.MessageReadPropertyFilter.SetAll();
 }
Пример #3
0
 public OpenedQueue(QueueInfo info, MessageQueue queue, string url, bool?transactional)
 {
     if (!info.Exists)
     {
         throw new TransportException("The queue " + info.QueueUri + " does not exists");
     }
     this.info          = info;
     this.queue         = queue;
     queueUrl           = url;
     this.transactional = transactional ?? (info.IsLocal == false || queue.Transactional);
     queue.MessageReadPropertyFilter.SetAll();
 }