From f7b0ddd56c51d9ef4e5e79ab007835427d15ed91 Mon Sep 17 00:00:00 2001 From: Savorboard Date: Thu, 14 Mar 2019 16:04:41 +0800 Subject: [PATCH] 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 --- src/Services/Location/Locations.API/Startup.cs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/Services/Location/Locations.API/Startup.cs b/src/Services/Location/Locations.API/Startup.cs index 5cb2327eb..6dd7f309b 100644 --- a/src/Services/Location/Locations.API/Startup.cs +++ b/src/Services/Location/Locations.API/Startup.cs @@ -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("AzureServiceBusEnabled")) {