2013-02-27 21 views
0

我只在端點(所有配置爲AsA_Server)中使用Bus.Reply()(而不是Bus.Publish())。當我火了其中的一個,我得到以下警告:我是否需要配置爲發佈者才能在NServiceBus中的配置爲AsA_Server的端點之間執行請求/響應(完全dupllex)?

2013-02-27 14:11:02,574 [Worker.15] WARN NServiceBus.Unicast.UnicastBus [(null) ] <(null)> - Subscription message from [not the currently running endpoint's queue]@my machine arrived at this endpoint, yet this endpoint is not configured to be a publi sher.

我需要爲了做配置AsA_Server端點間的請求/響應配置AsA_Publisher?全雙工樣本在這方面似乎沒有給出任何額外的指導。

回答

1

Per Andreas Ohlund

這只是一個警告,關閉自動訂閱,以避免它。

代碼做到這一點:

Configure.UnicastBus().DoNotAutoSubscribe();

每安德烈亞斯

此外,AutoSubscription will only apply to IEvent messages

+0

只是爲了說明:3.x中的auto子代適用於除命令外的所有消息。在4.x中,所有的消息都是事件 – 2013-03-03 06:38:12

相關問題