How to configure NServiceBus with two RavenDB IDocumentStores?
问题 In NSB 5, how do I correctly configure NSB with autofac container with one IDocumentStore for NSB data and a separate IDocumentStore for application data? I've pasted the relevant part of EndpointConfig below: // Raven DataStore for Freight system var appDataStore = new DocumentStore { ConnectionStringName = "RavenDB", DefaultDatabase = "ApplicationData" }; appDataStore .Initialize(); // Raven DataStore for NServiceBus var nsbDataStore = new DocumentStore { ConnectionStringName = "NServiceBus