Reputation: 847
We've started using nservicebus and are loving servicematrix, but it seems there is no way to add an existing web application as an endpoint (without manually going into the slndlr file and adding it there by hand).
Am I missing something or is this something planned for future releases?
Upvotes: 2
Views: 199
Reputation: 12057
You aren't missing anything, we haven't implemented this functionality in ServiceMatrix yet but it's in the pipeline.
Thanks.
Upvotes: 4
Reputation: 1759
not completely sure what you mean and the question is very unclear, but my guess is you talking about how you self-host an nservicebus endpoint as opposed to using the nservicebus generic host process.
if that assumption holds, yes, you can use the fluent interface to configure and start the bus in your application. you can tell it to use a container you use in your application to resolve IBus where you want to use it.
self-hosting documentation is here: http://support.nservicebus.com/customer/portal/articles/852419-hosting-nservicebus-in-your-own-process
that said, i'd generally advise against hosting a message-handling endpoint in a web application. whether it's a decent idea depends on a lot of things, but usuually an iis-hosted process can be shut down if there aren't requests going against it and you can have some headaches there with getting messages handled and it's probably best to just let that iis worker process do what it does best - host asp.net or whatever you are using to do your web application. (i'm assuming you're using iis, which you may not be, but i'd still advise that it's better to handle messages in something other than your web application.)
i may have answered a completely different question than you are asking, but hopefully this will be a resource with some value for folks that come across it.
Upvotes: 0