add Epub, Html, PowerPoint, RTF File Content Extractor and etc ...

This commit is contained in:
2026-10-22 19:06:51 +03:30
parent 877627714c
commit f39cde0d09
20 changed files with 1810 additions and 177 deletions
+29
View File
@@ -4,6 +4,8 @@ using xAiApi.Extensions;
using xCommons.Extensions;
using xAiApi.Configurations;
using xExceptions.Constants;
using xAiApi.Providers.Extractors;
using xAiApi.Interfaces.Extractors;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
@@ -67,6 +69,33 @@ namespace xAiApi.DI
source.AddSingleton(configuration);
}
/// <summary>
/// Register AiApi File Content Extractor Services ...
/// </summary>
/// <param name="source"></param>
public static void AddXAiFileContentExtractors(
this IServiceCollection source
)
{
//
// Register File Content Extractors ...
source.AddSingleton<IXFileContentExtractorBase, XPdfFileContentExtractor>();
source.AddSingleton<IXFileContentExtractorBase, XRtfFileContentExtractor>();
source.AddSingleton<IXFileContentExtractorBase, XEpubFileContentExtractor>();
source.AddSingleton<IXFileContentExtractorBase, XDocxFileContentExtractor>();
source.AddSingleton<IXFileContentExtractorBase, XHtmlFileContentExtractor>();
source.AddSingleton<IXFileContentExtractorBase, XImageFileContentExtractor>();
source.AddSingleton<IXFileContentExtractorBase, XAudioFileContentExtractor>();
source.AddSingleton<IXFileContentExtractorBase, XExcelFileContentExtractor>();
source.AddSingleton<IXFileContentExtractorBase, XVisionFileContentExtractor>();
source.AddSingleton<IXFileContentExtractorBase, XPlainTextFileContentExtractor>();
source.AddSingleton<IXFileContentExtractorBase, XPowerPointFileContentExtractor>();
source.AddSingleton<IXFileContentExtractorBase, XOpenDocumentFileContentExtractor>();
//
source.AddSingleton<IXFileContentExtractor, XFileContentExtractor>();
}
//
#region Private ...
/// <summary>