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 Marketing 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
f7b0ddd56c
commit
be23a7d42e
2 changed files
with
2 additions
and
7 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
src/Services/Marketing/Marketing.API/Marketing.API.csproj
+1
-6
src/Services/Marketing/Marketing.API/Startup.cs
+ 1
- 1
src/Services/Marketing/Marketing.API/Marketing.API.csproj
View File
@ -30,7 +30,7 @@
<PackageReference Include="DotNetCore.CAP" Version="2.5.0-preview-69219007" />
<PackageReference Include="DotNetCore.CAP.AzureServiceBus" Version="2.5.0-preview-69219007" />
<PackageReference Include="DotNetCore.CAP.RabbitMQ" Version="2.5.0-preview-69219007" />
<PackageReference Include="DotNetCore.CAP.
MongoDB
" Version="2.5.0-preview-69219007" />
<PackageReference Include="DotNetCore.CAP.
InMemoryStorage
" Version="2.5.0-preview-69219007" />
<PackageReference Include="Microsoft.ApplicationInsights.AspNetCore" Version="2.2.1" />
<PackageReference Include="Microsoft.ApplicationInsights.DependencyCollector" Version="2.6.1" />
<PackageReference Include="Microsoft.ApplicationInsights.Kubernetes" Version="1.0.2" />
+ 1
- 6
src/Services/Marketing/Marketing.API/Startup.cs
View File
@ -79,12 +79,7 @@
services
.
AddCap
(
options
=
>
{
// using MongoDB as the event storage
options
.
UseMongoDB
(
configure
=
>
{
configure
.
DatabaseConnection
=
Configuration
[
"MongoConnectionString"
]
;
configure
.
DatabaseName
=
Configuration
[
"MongoDatabase"
]
;
}
)
;
options
.
UseInMemoryStorage
(
)
;
if
(
Configuration
.
GetValue
<
bool
>
(
"AzureServiceBusEnabled"
)
)
{
Write
Preview
Loading…
Cancel
Save