Add sealed services
Also fix a missing IDisposable
This commit is contained in:
@@ -8,7 +8,7 @@ using System.Threading.Tasks;
|
||||
|
||||
namespace Akari.Prototype.Server.Services
|
||||
{
|
||||
public class AuthLifetimeService : IHostedService
|
||||
public sealed class AuthLifetimeService : IHostedService, IDisposable
|
||||
{
|
||||
public static TimeSpan CleanupInterval => TimeSpan.FromSeconds(5);
|
||||
public static TimeSpan AuthLifetime => TimeSpan.FromSeconds(30);
|
||||
|
||||
Reference in New Issue
Block a user