This commit is contained in:
2026-06-02 16:25:57 +08:00
24 changed files with 285 additions and 53 deletions
+4
View File
@@ -2,7 +2,9 @@
using FileService.Domain.IReposities;
using FileService.Infrastructure.Reposites;
using FileService.Infrastructure.Storage;
using IM.Application.Abstractions;
using IM.Commons;
using IM.Infrastructure.Efcore;
using Microsoft.Extensions.DependencyInjection;
namespace FileService.Infrastructure
@@ -17,6 +19,8 @@ namespace FileService.Infrastructure
services.AddScoped<IRedisService, RedisCacheService>();
services.AddScoped<IObjectStorageRouter, ObjectStorageRouter>();
services.AddScoped<IStorageRedisCache,StorageCacheService>();
services.AddScoped<ILocalChunkStorage, LocalStorageAdapter>();
services.AddScoped<IUnitOfWork, EfUnitOfWork<FileDbContext>>();
}
}
}