Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for the Header Exchange trigger binding #71

Open
wants to merge 3 commits into
base: dev
from

Conversation

@ianrathbone
Copy link

commented Sep 27, 2019

One of the concepts supported by RabbitMQ is the "Headers Exchange".
You can read more on this here: https://www.rabbitmq.com/tutorials/amqp-concepts.html

This pull request modifies the existing binding to add support for specifying an exchange instead of a queue. In the RabbitMQ Service this will create a queue based on the exchange name and bind based on specified x-match headers with supplied arguments.

I'm looking to use this in an upcoming project that relies heavily on this methodology, by spinning up several functions that will listen to their own specific headers independently of each other.

I appreciate the work you have done so far and look forward to seeing how I can help extend the functionality of this extension!

@msftclas

This comment has been minimized.

Copy link

commented Sep 27, 2019

CLA assistant check
All CLA requirements met.


if (!string.IsNullOrWhiteSpace(arguments))
{
var argumentObject = JObject.Parse(arguments);

This comment has been minimized.

Copy link
@ianrathbone

ianrathbone Sep 27, 2019

Author

I shall hold my hands up and confess here that I wasn't sure on the best way to pass in the header arguments in order to pass them to QueueBind as a Dictionary. Any advice here would be appreciated!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.