Add File Type and Detectors and Mime Type tools and Refactor Grouping ...

This commit is contained in:
2026-10-23 00:14:00 +03:30
parent caeb6ae7f3
commit 6f6ba825d6
14 changed files with 1427 additions and 8 deletions
+18 -3
View File
@@ -1,12 +1,27 @@
using xCommons.Providers;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Configuration;
using xCommons.Extensions;
public static partial class XDIHelperExtension {
public static partial class XDIHelperExtension
{
/// <summary>
/// Register XCommons Module Services
/// </summary>
/// <param name="services"></param>
public static void AddXCommons (this IServiceCollection services) {
services.AddSingleton<XValidationProvider> ();
public static void AddXCommons(this IServiceCollection services)
{
services.AddSingleton<XValidationProvider>();
}
public static void AddXCommons(
this IServiceCollection services,
IConfiguration configuration
)
{
//
services.AddXCommons();
services.AddXFileTypeDetector(configuration);
}
}