0
NServicebus의 2 개의 끝점을 호스트하고 2 개의 다른 대기열을 가리키며이 2 개의 대기열에 메시지를 보내려고합니다. 이상한 사유로 작동하지 않습니다. 나는 googled했다. 그리고 어떤 장소에서 사람들은 가능하다라고 말한다, 다른 장소 : 불가능하다. I 붙여 넣기 복사 예를 들어, 새로운 엔드 포인트에 대한 또 다른 변수를 사용하여이 코드를 _endpointInstance2은 (의미 경우여러 NServicebus 끝점 사용
//Here I configure the endpoint
var endpointConfiguration = new EndpointConfiguration(endpointName: Queue1);
endpointConfiguration.SendFailedMessagesTo("error");
endpointConfiguration.UseSerialization<JsonSerializer>();
endpointConfiguration.EnableInstallers();
endpointConfiguration.UsePersistence<InMemoryPersistence>();
_endpointInstance = await Endpoint.Start(endpointConfiguration).ConfigureAwait(false);
//Here I send a command
_endpointInstance.Send(Queue1, command);
그러나 응용 프로그램 반함 :
다음은 단일 엔드 포인트와 괜찮 내 코드의 난을 사용
시도하려는 내용의 전체 코드를 게시하십시오. – dstepan
당신은 아마 send ..를 기다려야합니다 .. :) – janovesk