mirror of
https://github.com/bitwarden/server.git
synced 2024-11-22 12:15:36 +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 == "Billing")" value="Billing">Billing</option>
|
||||||
<option asp-selected="@(Model.Project == "Events")" value="Events">Events</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 == "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>
|
<option asp-selected="@(Model.Project == "Icons")" value="Icons">Icons</option>
|
||||||
</select>
|
</select>
|
||||||
<button type="submit" class="btn btn-primary mb-2" title="Search"><i class="fa fa-search"></i> Search</button>
|
<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) &&
|
if(CoreHelpers.SettingHasValue(globalSettings.InternalIdentityKey) &&
|
||||||
CoreHelpers.SettingHasValue(globalSettings.BaseServiceUri.InternalNotifications))
|
CoreHelpers.SettingHasValue(globalSettings.BaseServiceUri.InternalNotifications))
|
||||||
{
|
{
|
||||||
// _services.Add(new NotificationsApiPushNotificationService(
|
_services.Add(new NotificationsApiPushNotificationService(
|
||||||
// globalSettings, httpContextAccessor, hubLogger));
|
globalSettings, httpContextAccessor, hubLogger));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -42,7 +42,7 @@ namespace Bit.Core.Services
|
|||||||
}
|
}
|
||||||
if(CoreHelpers.SettingHasValue(globalSettings.Notifications?.ConnectionString))
|
if(CoreHelpers.SettingHasValue(globalSettings.Notifications?.ConnectionString))
|
||||||
{
|
{
|
||||||
// _services.Add(new AzureQueuePushNotificationService(globalSettings, httpContextAccessor));
|
_services.Add(new AzureQueuePushNotificationService(globalSettings, httpContextAccessor));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -10,14 +10,14 @@
|
|||||||
"profiles": {
|
"profiles": {
|
||||||
"IIS Express": {
|
"IIS Express": {
|
||||||
"commandName": "IISExpress",
|
"commandName": "IISExpress",
|
||||||
"launchBrowser": true,
|
"launchBrowser": false,
|
||||||
"environmentVariables": {
|
"environmentVariables": {
|
||||||
"ASPNETCORE_ENVIRONMENT": "Development"
|
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"Notifications": {
|
"Notifications": {
|
||||||
"commandName": "Project",
|
"commandName": "Project",
|
||||||
"launchBrowser": true,
|
"launchBrowser": false,
|
||||||
"applicationUrl": "http://localhost:5000",
|
"applicationUrl": "http://localhost:5000",
|
||||||
"environmentVariables": {
|
"environmentVariables": {
|
||||||
"ASPNETCORE_ENVIRONMENT": "Development"
|
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||||
|
@ -105,7 +105,7 @@ namespace Bit.Notifications
|
|||||||
// Add SignlarR
|
// Add SignlarR
|
||||||
app.UseSignalR(routes =>
|
app.UseSignalR(routes =>
|
||||||
{
|
{
|
||||||
routes.MapHub<NotificationsHub>("/notifications-hub");
|
routes.MapHub<NotificationsHub>("/hub");
|
||||||
});
|
});
|
||||||
|
|
||||||
// Add MVC to the request pipeline.
|
// Add MVC to the request pipeline.
|
||||||
|
Loading…
Reference in New Issue
Block a user