//protected override IQueueAck Send(QueueItem message) //{ // return _api.PublishItem(message); //} protected override void ReceiveAsync(IDynamicWait dw) { QueueRequest request = new QueueRequest() { Host = _api.QueueName, QCommand = QueueCmd.Dequeue, DuplexType = DuplexTypes.WaitOne }; //void OnNack() //{ // CalcDynamicWait(false); //} //void OnAck(bool ack) //{ // aw.DynamicWaitAck(ack); //} //if (EnableResetEvent) // _api.DequeueAsync(request, ConnectTimeout, OnCompleted, OnAck, resetEvent); //else _api.DequeueAsync(request, ConnectTimeout, OnCompleted, dw); //_api.ReceiveAsync( // OnFault, // OnCompleted, // DuplexTypes.WaitOne, // resetEvent // ); //_api.SendDuplexAsync(message, // (err) => OnErrorOcurred(new GenericEventArgs<string>(err)), // (qitem) => OnMessageReceived(qitem)); }