Add AuthLifetimeService

Refactor AuthManager
This commit is contained in:
2021-06-04 18:32:47 +02:00
parent adcde19346
commit 2b81f3e5ba
13 changed files with 281 additions and 58 deletions

View File

@@ -0,0 +1,22 @@
using Akari.Prototype.Server.Options;
using Microsoft.Extensions.Options;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
namespace Akari.Prototype.Server.Services
{
public class AkariPath
{
private readonly AkariOptions _options;
public AkariPath(IOptions<AkariOptions> options)
{
_options = options.Value;
}
public string GetPath(string path) => Path.Combine(_options.DataPath, path);
}
}