add Epub, Html, PowerPoint, RTF File Content Extractor and etc ...
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user