mirror of
https://github.com/bitwarden/server.git
synced 2024-11-25 12:45:18 +01:00
enable notifications services
This commit is contained in:
parent
40a410917f
commit
5766c1f6f3
@ -21,7 +21,7 @@
|
||||
<option asp-selected="@(Model.Project == "Billing")" value="Billing">Billing</option>
|
||||
<option asp-selected="@(Model.Project == "Events")" value="Events">Events</option>
|
||||
<option asp-selected="@(Model.Project == "Identity")" value="Identity">Identity</option>
|
||||
<option asp-selected="@(Model.Project == "Scim")" value="Scim">Scim</option>
|
||||
<option asp-selected="@(Model.Project == "Notifications")" value="Notifications">Notifications</option>
|
||||
<option asp-selected="@(Model.Project == "Icons")" value="Icons">Icons</option>
|
||||
</select>
|
||||
<button type="submit" class="btn btn-primary mb-2" title="Search"><i class="fa fa-search"></i> Search</button>
|
||||
|
@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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"
|
||||
|
@ -105,7 +105,7 @@ namespace Bit.Notifications
|
||||
// Add SignlarR
|
||||
app.UseSignalR(routes =>
|
||||
{
|
||||
routes.MapHub<NotificationsHub>("/notifications-hub");
|
||||
routes.MapHub<NotificationsHub>("/hub");
|
||||
});
|
||||
|
||||
// Add MVC to the request pipeline.
|
||||
|
Loading…
Reference in New Issue
Block a user