public void Connect() { _applicationPrimaryConsumer = _queueProvider.CreateAppConsumer(_appName); _applicationPrimaryConsumer.ReadFromQueue(OnDequeue, OnError); }