Files
Servers/MoonlightServers.Daemon/ServerSystem/Implementations/Local/Extensions.cs

15 lines
561 B
C#

using MoonlightServers.Daemon.Configuration;
using MoonlightServers.Daemon.ServerSystem.Abstractions;
namespace MoonlightServers.Daemon.ServerSystem.Implementations.Local;
public static class Extensions
{
public static void AddLocalServices(this IServiceCollection services)
{
services.AddSingleton<IRuntimeStorageService, LocalRuntimeStorageService>();
services.AddSingleton<IInstallStorageService, LocalInstallStorageService>();
services.AddOptions<LocalStorageOptions>().BindConfiguration("Moonlight:LocalStorage");
}
}