I see a way to configure the DefaultHost with BusConfiguration(), but do not see a way to configure the RemoteAppDomainHost programmatically (without using a rhino.esb config file section).
Asked
Active
Viewed 693 times
2 Answers
0
var cashier = new RemoteAppDomainHost(typeof(CashierBootStrapper))
.Configuration("Cashier.config");
cashier.Start();

JarrettV
- 18,845
- 14
- 46
- 43
-
JarretV - thanks for the answer, but I was looking for a way to avoid config files. – Randy Klingelheber Mar 26 '12 at 18:54
0
Override BeginStart from your bootstrapper and call UseConfiguration. Here's sample code that is working for me:
public class RemoteAppBootstrapper : AutofacBootStrapper
{
protected override void OnBeginStart()
{
var busConfiguration = new HostConfiguration()
.Bus( "msmq://localhost/endpoint.a" )
.ToBusConfiguration();
UseConfiguration( busConfiguration );
base.OnBeginStart();
}
}

Randy Klingelheber
- 947
- 2
- 9
- 16