WutheringWaves/Core/Extensions/ServiceCollectionExtensions.cs

11 lines
336 B
C#

using Core.Resources;
using Microsoft.Extensions.DependencyInjection;
namespace Core.Extensions;
public static class ServiceCollectionExtensions
{
public static IServiceCollection UseLocalResources(this IServiceCollection services)
{
return services.AddSingleton<IResourceProvider, LocalResourceProvider>();
}
}