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 AkariPath
|
||||
public sealed class AkariPath
|
||||
{
|
||||
private readonly AkariOptions _options;
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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";
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user