From 5766c1f6f370d49392a66bf9529a9970996dbd81 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Fri, 17 Aug 2018 18:04:11 -0400 Subject: [PATCH] enable notifications services --- src/Admin/Views/Logs/Index.cshtml | 2 +- .../Implementations/MultiServicePushNotificationService.cs | 6 +++--- src/Notifications/Properties/launchSettings.json | 4 ++-- src/Notifications/Startup.cs | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/Admin/Views/Logs/Index.cshtml b/src/Admin/Views/Logs/Index.cshtml index a6cbfcfa5..ae14cfcec 100644 --- a/src/Admin/Views/Logs/Index.cshtml +++ b/src/Admin/Views/Logs/Index.cshtml @@ -21,7 +21,7 @@ - + diff --git a/src/Core/Services/Implementations/MultiServicePushNotificationService.cs b/src/Core/Services/Implementations/MultiServicePushNotificationService.cs index bd47b2afa..8952a9ae1 100644 --- a/src/Core/Services/Implementations/MultiServicePushNotificationService.cs +++ b/src/Core/Services/Implementations/MultiServicePushNotificationService.cs @@ -30,8 +30,8 @@ namespace Bit.Core.Services if(CoreHelpers.SettingHasValue(globalSettings.InternalIdentityKey) && CoreHelpers.SettingHasValue(globalSettings.BaseServiceUri.InternalNotifications)) { - // _services.Add(new NotificationsApiPushNotificationService( - // globalSettings, httpContextAccessor, hubLogger)); + _services.Add(new NotificationsApiPushNotificationService( + globalSettings, httpContextAccessor, hubLogger)); } } else @@ -42,7 +42,7 @@ namespace Bit.Core.Services } if(CoreHelpers.SettingHasValue(globalSettings.Notifications?.ConnectionString)) { - // _services.Add(new AzureQueuePushNotificationService(globalSettings, httpContextAccessor)); + _services.Add(new AzureQueuePushNotificationService(globalSettings, httpContextAccessor)); } } } diff --git a/src/Notifications/Properties/launchSettings.json b/src/Notifications/Properties/launchSettings.json index 60107fae3..0bb43fce0 100644 --- a/src/Notifications/Properties/launchSettings.json +++ b/src/Notifications/Properties/launchSettings.json @@ -10,14 +10,14 @@ "profiles": { "IIS Express": { "commandName": "IISExpress", - "launchBrowser": true, + "launchBrowser": false, "environmentVariables": { "ASPNETCORE_ENVIRONMENT": "Development" } }, "Notifications": { "commandName": "Project", - "launchBrowser": true, + "launchBrowser": false, "applicationUrl": "http://localhost:5000", "environmentVariables": { "ASPNETCORE_ENVIRONMENT": "Development" diff --git a/src/Notifications/Startup.cs b/src/Notifications/Startup.cs index 56821d27e..e8c30b78d 100644 --- a/src/Notifications/Startup.cs +++ b/src/Notifications/Startup.cs @@ -105,7 +105,7 @@ namespace Bit.Notifications // Add SignlarR app.UseSignalR(routes => { - routes.MapHub("/notifications-hub"); + routes.MapHub("/hub"); }); // Add MVC to the request pipeline.