2022-12-07 14:05:11 +01:00
|
|
|
using Microsoft.Extensions.Configuration;
|
|
|
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
|
|
|
|
|
|
namespace zero.Validation;
|
|
|
|
|
|
|
|
|
|
internal class ZeroValidationModule : ZeroModule
|
|
|
|
|
{
|
|
|
|
|
public override void ConfigureServices(IServiceCollection services, IConfiguration configuration)
|
|
|
|
|
{
|
2026-03-09 13:21:21 +01:00
|
|
|
services.AddValidationLanguageExtensions();
|
2022-12-07 14:05:11 +01:00
|
|
|
services.AddScoped(typeof(IZeroMergedValidator<>), typeof(ZeroMergedValidator<>));
|
|
|
|
|
}
|
|
|
|
|
}
|