Add File Type and Detectors and Mime Type tools and Refactor Grouping ...
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user