Add sealed services

Also fix a missing IDisposable
This commit is contained in:
2021-06-07 01:45:28 +02:00
parent f539455e10
commit bee5ac6f9e
4 changed files with 4 additions and 4 deletions

View File

@@ -8,7 +8,7 @@ using System.Threading.Tasks;
namespace Akari.Prototype.Server.Services
{
public class AkariPath
public sealed class AkariPath
{
private readonly AkariOptions _options;

View File

@@ -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);

View File

@@ -15,7 +15,7 @@ using System.Threading.Tasks;
namespace Akari.Prototype.Server.Services
{
public class FingerprintManager : IFingerprintManager
public sealed class FingerprintManager : IFingerprintManager
{
public const string FingerprintsPath = "fingerprints.json";

View File

@@ -12,7 +12,7 @@ using Microsoft.Extensions.Logging;
namespace Akari.Prototype.Server.Services
{
public class MasterKeyService : IMasterKeyService, IDisposable
public sealed class MasterKeyService : IMasterKeyService, IDisposable
{
private record Config(string Hash, string KeySalt);