Exception in RavenDB.SagaPersister.Save, “Guid should contain 32 digits with 4 dashes”. Guid is empty in Raven

我怕爱的太早我们不能终老 提交于 2019-12-02 12:07:38
Trygve

I figured it out. It was the

freightDataStore.Conventions.IdentityPartsSeparator = "-";

that fooled Raven, since the generated id probably would look something like InvoiceSaga-cdd0b4ed-d310-41fa-a8dd-a3dc00b3942f.

EDIT This can be solved by registering a custom Raven.Client.Converters.ITypeConverter for Guid with the DocumentStore.Conventions.IdentityProviders. See submitted Raven issue and this SO question for more info

But WHY NSB uses the freightDataStore and not the nsbDataStore for persisting the saga I don't know yet. I might have misunderstood how to configure NSB with two different IDataStores registered in the container? Any guidance on this?

EDIT I've created a separate question for this: How to configure NServiceBus with two RavenDB IDocumentStores?

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!