1
0
mirror of https://github.com/bitwarden/server.git synced 2025-05-22 12:04:27 -05:00

rename hosted service

This commit is contained in:
Kyle Spearrin 2018-08-02 23:13:06 -04:00
parent a4e91aa570
commit b4318e7e85
2 changed files with 3 additions and 4 deletions

View File

@ -13,7 +13,7 @@ using Newtonsoft.Json;
namespace Bit.Hub namespace Bit.Hub
{ {
public class TimedHostedService : IHostedService, IDisposable public class AzureQueueHostedService : IHostedService, IDisposable
{ {
private readonly ILogger _logger; private readonly ILogger _logger;
private readonly IHubContext<SyncHub> _hubContext; private readonly IHubContext<SyncHub> _hubContext;
@ -23,7 +23,7 @@ namespace Bit.Hub
private CancellationTokenSource _cts; private CancellationTokenSource _cts;
private CloudQueue _queue; private CloudQueue _queue;
public TimedHostedService(ILogger<TimedHostedService> logger, IHubContext<SyncHub> hubContext, public AzureQueueHostedService(ILogger<AzureQueueHostedService> logger, IHubContext<SyncHub> hubContext,
GlobalSettings globalSettings) GlobalSettings globalSettings)
{ {
_logger = logger; _logger = logger;

View File

@ -1,7 +1,6 @@
using System.Security.Claims; using System.Security.Claims;
using Bit.Core; using Bit.Core;
using Bit.Core.IdentityServer; using Bit.Core.IdentityServer;
using Bit.Core.Services;
using Bit.Core.Utilities; using Bit.Core.Utilities;
using IdentityModel; using IdentityModel;
using IdentityServer4.AccessTokenValidation; using IdentityServer4.AccessTokenValidation;
@ -71,7 +70,7 @@ namespace Bit.Hub
services.AddMvc(); services.AddMvc();
// Hosted Services // Hosted Services
services.AddHostedService<TimedHostedService>(); services.AddHostedService<AzureQueueHostedService>();
} }
public void Configure( public void Configure(