Re: [masstransit-discuss] MassTransit configuration externalization

49 views
Skip to first unread message

Dru Sellers

unread,
May 13, 2013, 3:49:56 PM5/13/13
to masstrans...@googlegroups.com
the dzone article is almost 4 years old, so yes its about an older version.
oren's article is from 2008.

we don't usually go for XML config, though there does seem to be some code in the code base about it.

We don't put our config for our application in the (app|web).config - we have a custom configuration solution. so we just read from that and then set the bus up as needed.

So I guess the answer is: no.


-d


On Mon, May 13, 2013 at 3:58 AM, Andrea Montemaggio <a.mont...@gmail.com> wrote:
I am a new user of MassTransit but despite I read the documentation and digged into the source code, I've found no samples about using XML to configure the bus (in particular ReceiveFrom URI parameter). In the sources there is the namespace "MassTransit.Configuration.Xml" with an implementation of a configuration section handler, but I couldn't get how to practically use it for configuring the bus.
I've found http://dotnet.dzone.com/news/first-look-masstransit and http://ayende.com/blog/3749/a-study-in-default-contradictions-dont-show-me-xml-gimme-configuration-options talking about a Windsor facility (yes, I'm using Castle Windsor), but I've found no traces of such integration in the sources. Are these articles about an old version of MassTransit?

So my question is: is there a well defined and supported way to externalize MassTransit configuration?

Thanks in advance,
Andrea

--
You received this message because you are subscribed to the Google Groups "masstransit-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to masstransit-dis...@googlegroups.com.
To post to this group, send email to masstrans...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/masstransit-discuss/-/DZpaY2Iq-DYJ.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Chris Patterson

unread,
May 14, 2013, 11:35:46 AM5/14/13
to masstrans...@googlegroups.com
You can use the Environment extensions, which allow different configurations to be specified based on an environment value read from the app/web.config, but that's about it. You can always read the configuration values from the app/web.config and plug them into the bus configuration code.
Reply all
Reply to author
Forward
0 new messages