DD.WellWorkover.Cloud/AsbCloudInfrastructure/Validators/DependencyInjection.cs

32 lines
1.8 KiB
C#
Raw Normal View History

2022-01-12 17:28:27 +05:00
using AsbCloudApp.Data;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using FluentValidation;
namespace AsbCloudInfrastructure.Validators
{
public static class DependencyInjection
{
public static IServiceCollection AddValidators(this IServiceCollection services)
2022-01-12 17:28:27 +05:00
{
// services.AddTransient<IValidator<AuthDto>, AuthDtoValidator>();
// services.AddTransient<IValidator<ClusterDto>, ClusterDtoValidator>();
// services.AddTransient<IValidator<CompanyDto>, CompanyDtoValidator>();
// services.AddTransient<IValidator<DepositDto>, DepositDtoValidator>();
// services.AddTransient<IValidator<DrillFlowChartDto>, DrillFlowChartDtoValidator>();
// services.AddTransient<IValidator<EventDto>, EventDtoValidator>();
// services.AddTransient<IValidator<FileInfoDto>, FileInfoDtoValidator>();
// services.AddTransient<IValidator<FileMarkDto>, FileMarkDtoValidator>();
// services.AddTransient<IValidator<MeasureDto>, MeasureDtoValidator>();
// services.AddTransient<IValidator<MessageDto>, MessageDtoValidator>();
// services.AddTransient<IValidator<PermissionDto>, PermissionDtoValidator>();
// services.AddTransient<IValidator<ReportPropertiesDto>, ReportPropertiesDtoValidator>();
// services.AddTransient<IValidator<UserRegistrationDto>, UserRegistrationDtoValidator>();
// services.AddTransient<IValidator<UserRoleDto>, UserRoleDtoValidator>();
// services.AddTransient<IValidator<WellDto>, WellDtoValidator>();
// services.AddTransient<IValidator<WellOperationDto>, WellOperationDtoValidator>();
2022-01-12 17:28:27 +05:00
return services;
}
}
}