using Microsoft.Extensions.DependencyInjection;
using TakeoutSaaS.Application.Storage.Abstractions;
using TakeoutSaaS.Application.Storage.Services;

namespace TakeoutSaaS.Application.Storage.Extensions;

/// <summary>
/// 存储应用服务注册扩展。
/// </summary>
public static class StorageServiceCollectionExtensions
{
    /// <summary>
    /// 注册文件存储应用服务。
    /// </summary>
    public static IServiceCollection AddStorageApplication(this IServiceCollection services)
    {
        services.AddScoped<IFileStorageService, FileStorageService>();
        return services;
    }
}
