Browse Source

Switch the Locations Api event store to in-memory storage because CAP requires MongoDB version to be larger than 4.0 and enable clustering to use the local storage transaction provided by MongoDB

pull/970/head
Savorboard 6 years ago
parent
commit
f7b0ddd56c
1 changed files with 1 additions and 6 deletions
  1. +1
    -6
      src/Services/Location/Locations.API/Startup.cs

+ 1
- 6
src/Services/Location/Locations.API/Startup.cs View File

@ -53,12 +53,7 @@ namespace Microsoft.eShopOnContainers.Services.Locations.API
services.AddCap(options =>
{
// using MongoDB as the event storage
options.UseMongoDB(configure =>
{
configure.DatabaseConnection = Configuration["ConnectionString"];
configure.DatabaseName= Configuration["Database"];
});
options.UseInMemoryStorage();
if (Configuration.GetValue<bool>("AzureServiceBusEnabled"))
{


Loading…
Cancel
Save