예제 #1
0
 public SyncWorkQueueConsumer(WorkQueueInfo wq)
 {
     Consumer = new SyncConsumer(new ConsumerInfo(wq.Host, wq.Name, true, wq.IsPersistent, 2));
 }
예제 #2
0
 public WorkQueueProducer(WorkQueueInfo wq)
 {
     WorkQueueInfo = wq;
     Init();
 }
예제 #3
0
 public AsyncWorkQueueConsumer(WorkQueueInfo wq)
 {
     Consumer = new AsyncConsumer(new ConsumerInfo(wq.Host, wq.Name, true, wq.IsPersistent, 1), msg => Received.Fire(msg));
     Consumer.IsConnectedChanged += x => IsConnectedChanged.Fire(x);
 }