2012-10-25 3 views
1

기본 json serializer 대신 xml serializer를 사용하기 위해 Azure에서 호스트 된 작업자 프로세스를 전환하려고합니다. 나는이 같은 IWantCustomInitialization 구현하여 이런 짓을했는지 :Azure 및 XML 직렬 변환기가있는 NServiceBus

public class BusInitialization : IWantCustomInitialization 
{ 
    public void Init() 
    { 
     Configure.Instance.XmlSerializer(); 
    } 
} 

을 그러나 나는 클라우드 솔루션을 시작할 때, 나는 다음과 같은 오류 얻을 : 나는 어떤 사용자 정의 초기화를 사용하지하고 JsonSerializer에 갈 때

Exception when starting endpoint, error has been logged. Reason: Type NServiceBus.Unicast.Transport.CompletionMessage was not registered in the serializer. Check that it appears in the list of configured assemblies/types to scan.

을, 모든 것이 좋습니다. 누구는 내가 볼 곳을 제안합니까? 나는 NSB 3.2.8을 사용한다.

답변

2

이 문제가 해결되었다고 생각했지만 3.2.8 에서처럼 jsonserializer를 쉽게 오버라이드 할 수 없습니다. 이것은 dev 브랜치에서 이미 수정되었지만 아직 릴리스되지 않았습니다. 다음 분기에있을 것입니다.

당신이 다음 릴리스가 나올 때까지 기다리는 수없는 경우 다음과 유사한 자신의 역할과 역할 핸들러로 AsA_Worker을 대체하여이 문제를 해결할 수 있습니다

3.2.8 버전 https://github.com/NServiceBus/NServiceBus/blob/master/src/azure/Hosting/NServiceBus.Hosting.Azure/Roles/Handlers/WorkerRoleHandler.cs

버전 https://github.com/NServiceBus/NServiceBus/blob/develop/src/azure/Hosting/NServiceBus.Hosting.Azure/Roles/Handlers/WorkerRoleHandler.cs 개발

종류와 관련, 이브

+0

이브 주셔서 감사합니다. dev 브랜치도 있는데, 코드가 어떻게 작동하는지 이해할 것이다. –

관련 문제