This website works better with JavaScript.
Home
Explore
Help
Sign In
ayan.poddar
/
eShopOnContainers
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
19
Wiki
Activity
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
384119eef4
commit
f7b0ddd56c
1 changed files
with
1 additions
and
6 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+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"
)
)
{
Write
Preview
Loading…
Cancel
Save