Files
Akari.Prototype/Akari.Prototype.Server/Services/AkariPath.cs
Eveldee bee5ac6f9e Add sealed services
Also fix a missing IDisposable
2021-06-07 01:45:28 +02:00

23 lines
534 B
C#

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 sealed class AkariPath
{
private readonly AkariOptions _options;
public AkariPath(IOptions<AkariOptions> options)
{
_options = options.Value;
}
public string GetPath(string path) => Path.Combine(_options.DataPath, path);
}
}