0
我想在NServiceBus 3.2.3中設置RavenDB DocumentStore.ApiKey
。根據此thread,這不能通過NSB 3.2.3中使用的RavenDB版本直接從連接字符串中讀取。在NServiceBus中設置RavenDB ApiKey 3.2.3
在NSB的DocumentStore
實例註冊爲IDocumentStore
,這意味着我不能使用自定義操作這樣爲IDocumentStore
不公開ApiKey
:
Configure.With()
.DefaultBuilder()
.RavenPersistence()
.RunCustomAction(() =>
Configure.Instance.Configurer
.ConfigureProperty<IDocumentStore>(store => store.ApiKey, "my-api-key"));
似乎沒有成爲RavenPersistence
超載擴展,允許我提供IDocumentStore
。有什麼辦法可以設置ApiKey
?
謝謝安德烈亞斯。 CI就是這樣:) –