nservicebus-sagas

How to configure NServiceBus with two RavenDB IDocumentStores?

无人久伴 提交于 2020-01-06 13:51:26
问题 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

How to configure NServiceBus with two RavenDB IDocumentStores?

青春壹個敷衍的年華 提交于 2020-01-06 13:51:25
问题 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

Unable to host an NServiceBus Saga from another Service with SQL Persistence

北战南征 提交于 2019-12-14 03:06:37
问题 I am attempting to host a Saga from one project in another project using NServiceBus 6 with SqlPersistence and SqlDialect.MsSqlServer . In most examples I have found, the Saga is contained in the same assembly as the hosting app, and perhaps this is why I am struggling. When hosting everything in the same app, the NServiceBus.Persistence.Sql.MsBuild package correctly outputs Saga .sql files during the build and then picks these up and executes them on run. Using a separate app, only the

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

只谈情不闲聊 提交于 2019-12-02 19:25:56
问题 NServiceBus 5.1, RavenDB persistence, AutoFac container, log4net, all latest versions in NuGet at time of posting. EndpointConfig: log4net.Config.XmlConfigurator.Configure(); LogManager.Use<Log4NetFactory>(); // Raven DataStore for Freight system var freightDataStore = new DocumentStore { ConnectionStringName = "RavenDB", DefaultDatabase = "ProTeria.Freight" }; freightDataStore.Initialize(); freightDataStore.Conventions.IdentityPartsSeparator = "-"; Raven.Client.Indexes.IndexCreation

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

我怕爱的太早我们不能终老 提交于 2019-12-02 12:07:38
NServiceBus 5.1, RavenDB persistence, AutoFac container, log4net, all latest versions in NuGet at time of posting. EndpointConfig: log4net.Config.XmlConfigurator.Configure(); LogManager.Use<Log4NetFactory>(); // Raven DataStore for Freight system var freightDataStore = new DocumentStore { ConnectionStringName = "RavenDB", DefaultDatabase = "ProTeria.Freight" }; freightDataStore.Initialize(); freightDataStore.Conventions.IdentityPartsSeparator = "-"; Raven.Client.Indexes.IndexCreation.CreateIndexes(typeof(ProTeria.NET.RavenDB.BringInvoiceIndexes.BringInvoiceIndexBringIdAndStatus).Assembly,