NSerivceBus에 대한 이해를 돕기 위해 노력하고 있지만 대부분 원활하게 진행되고 있지만 EndPointName을 구성하는 방법을 이해하는 데 어려움을 겪고 있습니다.Nservice Bus Endpoint Naming
예를 들어, 몇 가지 예를 따르면 나는 다음과 같은 문제를 해결할 수 있었지만 EndPoint 이름을 변경하려는 모든 시도는 실패합니다.
는 그래서이 myServer 큐는 현재이, 이름을 가지고있는 것이다, 여기 네임 스페이스에서 생각 :
namespace MyServer
{
class EndPointConfig : IConfigureThisEndpoint, AsA_Server
{
}
}
을하지만 넣어 때 입력 나던 제외 [EndpointName는 ("AnotherQueue은")] 아무것도 (변경되지 .이 myServer 큐
나는 또한 Global.asax에 변경 시도 :
public static IBus Bus { get; set; }
void Application_Start(object sender, EventArgs e)
{
Bus = NServiceBus.Configure.With()
.Log4Net()
.DefaultBuilder()
.DefineEndpointName("AnotherQueue")
.XmlSerializer()
.MsmqTransport()
.IsTransactional(false)
.PurgeOnStartup(false)
.UnicastBus()
.ImpersonateSender(false)
.CreateBus()
.Start();
}
을 그러나 다시, 그것은 일을 일부러
. 0mmc를보고 거기에 대기중인 메시지를 확인하여 테스트하고 있습니다.
는 마지막으로 나는 Web.config의를<configSections>
<section name="MsmqTransportConfig" type="NServiceBus.Config.MsmqTransportConfig, NserviceBus.Core"/>
<section name="UnicastBusConfig" type="NServiceBus.Config.UnicastBusConfig, NServiceBus.Core"/>
</configSections>
<MsmqTransportConfig ErrorQueue="error" NumberOfWorkerThreads="1" MaxRetries="5"/>
<UnicastBusConfig>
<MessageEndpointMappings>
<add Messages="MyMessage" Endpoint="AnotherQueue"></add>
</MessageEndpointMappings>
</UnicastBusConfig>
그리고 아직도 아무 것도 변경하지 노력했다.
누구든지 도움을 줄 수 있습니까? 나는 아직도이 문제에 대해 머리를 쓰려고 노력하고있다. (그것은 나에게 새로운 기술이다.) 그래서 나는이 질문에 불만을 터트 리면 나는 apolagise한다. 사전에
감사 렉스
DefineEndPointName()은 DefaultBuilder() 앞에 와야합니다. https://github.com/Particular/NServiceBus/issues/277을 참조하십시오. –