Rebus の app.config 構成があり、動作します。
<configuration>
<configSections>
<section name="rebus" type="Rebus.Configuration.RebusConfigurationSection, Rebus" />
</configSections>
<rebus address="192.168.10.100" inputQueue="a.messages" errorQueue="a.error" workers="1" maxRetries="10">
<endpoints>
<add messages="ESB_Model" endpoint="a.messages@MyRemoteMachine" />
</endpoints>
</rebus>
</configuration>
その後、configfile の代わりにコードでアドレスとエンドポイントを設定したいと思います。
_adapter = new BuiltinContainerAdapter();
_bus = Configure.With(_adapter)
.Logging(l => l.None())
.Transport(t => t.UseMsmq("a.messages@MyRemoteMachine", "a.error"))
.MessageOwnership(d => d.FromRebusConfigurationSection())
.CreateBus()
.Start();
これは受け入れられず、IP アドレスの設定方法がわかりません。どんな助けでも大歓迎です!