refactor(jobs): modularize background job handlers
Some checks failed
ci / release-gate (push) Has been cancelled
Some checks failed
ci / release-gate (push) Has been cancelled
This commit is contained in:
@@ -2,6 +2,7 @@ using Microsoft.Extensions.DependencyInjection;
|
||||
using Tiku.Application.Assets;
|
||||
using Tiku.Application.Catalog;
|
||||
using Tiku.Application.Content;
|
||||
using Tiku.Application.Jobs;
|
||||
using Tiku.Application.Profile;
|
||||
using Tiku.Application.QuestionBanks;
|
||||
using Tiku.Application.Scoreline;
|
||||
@@ -10,6 +11,9 @@ using Tiku.Application.StudyContent;
|
||||
using Tiku.Infrastructure.Assets;
|
||||
using Tiku.Infrastructure.Catalog;
|
||||
using Tiku.Infrastructure.Content;
|
||||
using Tiku.Infrastructure.Content.Exports;
|
||||
using Tiku.Infrastructure.Content.Imports;
|
||||
using Tiku.Infrastructure.Assets.Security;
|
||||
using Tiku.Infrastructure.Profile;
|
||||
using Tiku.Infrastructure.QuestionBanks;
|
||||
using Tiku.Infrastructure.Scoreline;
|
||||
@@ -38,6 +42,9 @@ internal static class ContentModule
|
||||
services.AddScoped<IAssetAccessService, AssetAccessService>();
|
||||
services.AddScoped<IAssetManagementService, AssetManagementService>();
|
||||
services.AddScoped<IAssetSecurityScanner, ClamAvAssetSecurityScanner>();
|
||||
services.AddScoped<IBackgroundJobHandler, ContentImportJobHandler>();
|
||||
services.AddScoped<IBackgroundJobHandler, ContentExportJobHandler>();
|
||||
services.AddScoped<IBackgroundJobHandler, AssetSecurityScanJobHandler>();
|
||||
services.AddOptions<ClamAvOptions>();
|
||||
services.AddScoped<IVideoPlaybackService, VideoPlaybackService>();
|
||||
services.AddOptions<AliyunOssOptions>()
|
||||
@@ -48,4 +55,4 @@ internal static class ContentModule
|
||||
services.AddSingleton<IObjectStorageService, AliyunOssObjectStorageService>();
|
||||
return services;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user