Add AuthLifetimeService
Refactor AuthManager
This commit is contained in:
22
Akari.Prototype.Server/Services/AkariPath.cs
Normal file
22
Akari.Prototype.Server/Services/AkariPath.cs
Normal 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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user