1
0
mirror of https://github.com/bitwarden/server synced 2026-01-09 03:53:42 +00:00

keep application cache in sync with service bus

This commit is contained in:
Kyle Spearrin
2019-06-13 00:10:37 -04:00
parent 2d63732085
commit 6f0d64119a
16 changed files with 276 additions and 9 deletions

View File

@@ -129,6 +129,11 @@ namespace Bit.Api
Jobs.JobsHostedService.AddJobsServices(services);
services.AddHostedService<Jobs.JobsHostedService>();
}
if(CoreHelpers.SettingHasValue(globalSettings.ServiceBus.ConnectionString) &&
CoreHelpers.SettingHasValue(globalSettings.ServiceBus.ApplicationCacheTopicName))
{
services.AddHostedService<Core.HostedServices.ApplicationCacheHostedService>();
}
}
public void Configure(

View File

@@ -51,6 +51,10 @@
"connectionString": "SECRET",
"hubName": "SECRET"
},
"serviceBus": {
"connectionString": "SECRET",
"applicationCacheTopicName": "SECRET"
},
"yubico": {
"clientid": "SECRET",
"key": "SECRET"