public SyncWorkQueueConsumer(WorkQueueInfo wq) { Consumer = new SyncConsumer(new ConsumerInfo(wq.Host, wq.Name, true, wq.IsPersistent, 2)); }
public WorkQueueProducer(WorkQueueInfo wq) { WorkQueueInfo = wq; Init(); }
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); }