Was discussing with hyperthunk on IRC and agreed to move it to the mailing list:


So we wrote a consumer in .NET using the provided client and are consuming off of a mirrored queue. According to http://www.rabbitmq.com/ha.html we should be responding to Consumer Cancellation Notifications, but I'm not finding much on the site or net in general as to how to actually hook into that using the .NET client. I thought that using the Unregistered event off of EventingBasicConsumer would do it (HandleBasicCancelOk) but according to hyperthunk that we need something else for the consumer side. I can confirm that it does connect with the correct properties indicating it supports consumer_cancel_notify.


Do I ultimately just need to subclass and override HandleBasicCancel or OnCancel()?


Thanks




Andrew Ochsner | Intentional Architecture
T +01 402 431 7583
A 18020 Burt St, Omaha, NE 68022
E andrew.ochsner at csgi.com


[CSG International Logo]


________________________________
All emails in this message string and any attachments are the confidential information of CSG Systems International, Inc. (CSG), or its affiliates and subsidiaries, and may contain privileged and/or confidential material. If you are not an intended recipient, please delete it immediately and notify the sender; unintended recipients are not authorized to read or otherwise use the information contained herein.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20130606/cb842c30/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.gif
Type: image/gif
Size: 1364 bytes
Desc: image001.gif
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20130606/cb842c30/attachment.gif>

Search Discussions

  • Emile Joubert at Jun 7, 2013 at 7:35 am

    On 06/06/13 20:56, Andy Ochsner wrote:
    Do I ultimately just need to subclass and override HandleBasicCancel or
    OnCancel()?

    You need to implement HandleBasicCancel().
    See the example in class RabbitMQ.Client.Unit.TestConsumerCancelNotify.








    -Emile
  • Andy Ochsner at Jun 7, 2013 at 2:55 pm
    Thanks! Are there any plans to add an event to EventingBasicConsumer?


    -----Original Message-----
    From: Emile Joubert [mailto:emile at rabbitmq.com]
    Sent: Friday, June 07, 2013 2:36 AM
    To: Discussions about RabbitMQ
    Cc: Andy Ochsner
    Subject: Re: [rabbitmq-discuss] Consumer Cancellation Notifications with .NET client

    On 06/06/13 20:56, Andy Ochsner wrote:
    Do I ultimately just need to subclass and override HandleBasicCancel
    or OnCancel()?

    You need to implement HandleBasicCancel().
    See the example in class RabbitMQ.Client.Unit.TestConsumerCancelNotify.








    -Emile








    ________________________________


    All emails in this message string and any attachments are the confidential information of CSG Systems International, Inc. (CSG), or its affiliates and subsidiaries, and may contain privileged and/or confidential material. If you are not an intended recipient, please delete it immediately and notify the sender; unintended recipients are not authorized to read or otherwise use the information contained herein.
  • Emile Joubert at Jun 7, 2013 at 3:11 pm

    On 07/06/13 15:55, Andy Ochsner wrote:
    Thanks! Are there any plans to add an event to EventingBasicConsumer?

    Yes there are plans, but I can't guarantee when that will happen.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouprabbitmq-discuss @
categoriesrabbitmq
postedJun 6, '13 at 7:56p
activeJun 7, '13 at 3:11p
posts4
users2
websiterabbitmq.com
irc#rabbitmq

2 users in discussion

Emile Joubert: 2 posts Andy Ochsner: 2 posts

People

Translate

site design / logo © 2017 Grokbase