22 lines
789 B
C#
22 lines
789 B
C#
using FileService.Application.Ports;
|
|
using FileService.Domain.IReposities;
|
|
using FileService.Infrastructure.Reposites;
|
|
using FileService.Infrastructure.Storage;
|
|
using IM.Commons;
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
namespace FileService.Infrastructure
|
|
{
|
|
public class ModuleInit : IModuleInitializer
|
|
{
|
|
public void Initialize(IServiceCollection services)
|
|
{
|
|
services.AddScoped<IUploadFileReposity, UploadFileReposity>();
|
|
services.AddScoped<IUploadTaskReposity, UploadTaskReposity>();
|
|
services.AddScoped<IObjectStoragePort, LocalStorageAdapter>();
|
|
services.AddScoped<IObjectStorageRouter, ObjectStorageRouter>();
|
|
services.AddScoped<IStorageRedisCache,StorageCacheService>();
|
|
}
|
|
}
|
|
}
|