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

Examples of Jackalope #2

Open
kriswill opened this issue Aug 18, 2010 · 1 comment
Open

Examples of Jackalope #2

kriswill opened this issue Aug 18, 2010 · 1 comment

Comments

@kriswill
Copy link

I'm currently using the .net RabbitMQ.Client natively, however I would love to see some examples or spec tests for this in your library. Bonus points for using Rx!

@arobson
Copy link
Contributor

arobson commented Aug 31, 2010

Kriswill,

There are some really simple examples of Jackalope as publisher and subscriber projects under the demo solution folder in Symbiote.

I have have more for you to look at in the near-ish future and will update you. In the meantime, keep in mind that there are two primary means to subscribe to messages:

Implement IMessageHandler, Jackalope will scan your assembly to find these and auto-wire them up so that as messages of TMessage are dequeued from RabbitMQ, Jackalope instantiates the corresponding handlers, passes them the message and then disposes of them once the process is complete.

The other approach is to use Bus.QueueStreams["queueName"] to get access to an IObservable for all messages arriving off the queue. The envelope contains the message and an IMessageDelivery interface; the latter is used to Acknowledge the message.

If you have other questions, feel free to e-mail me: asrobson AT gmail DOT com.

Hope you find it useful!

Alex

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants