2016-03-10 55 views
0

我們剛剛完成了一組用不顯眼的方式來查找命令和事件(可能是重要的不是消息)混合autosubscribe和messagepoint映射

conventions.DefiningCommandsAs(t => t.Namespace != null && t.Namespace.EndsWith("Commands")); 
conventions.DefiningEventsAs(t => t.Namespace != null && t.Namespace.EndsWith("Events")); 
conventions.DefiningTimeToBeReceivedAs(
      t => t.Name.EndsWith("Expires") ? TimeSpan.FromSeconds(30) : TimeSpan.MaxValue); 

有一個現有的網關,是我們使用到的WebAPI服務連接並根據其發送的消息類型基於MessageEndpointMappings進行發佈。我期待在subtions表中包含安裝後的事件條目。到/安裝包括參數

/serviceName: 
/displayName: 
/description: 
/endpointConfigurationType: (for services not the saga) 
/username: 
/password: 
& NServiceBus.Production 

網關發送新的事件類型,並因此導致的發佈呼叫,但它不是由服務接走。我認爲網關不能發佈,因爲它不知道新的類型。我是否需要將MessageEndpointMappings添加到網關配置中,或者是否應將其轉換爲不顯眼的模式。我認爲映射需要參考,它沒有任何反應,我不確定這兩種方法是否兼容。

回答

0

這個簡單的答案。現有的網關具有不同的模式並且與配置衝突。