2022-01-12 17:28:27 +05:00
|
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
|
|
|
|
namespace AsbCloudInfrastructure.Validators
|
|
|
|
{
|
|
|
|
public static class DependencyInjection
|
|
|
|
{
|
2022-01-12 17:35:14 +05:00
|
|
|
public static IServiceCollection AddValidators(this IServiceCollection services)
|
2022-01-12 17:28:27 +05:00
|
|
|
{
|
2022-01-31 16:13: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-05-31 12:30:03 +05:00
|
|
|
// TimeDtoValidator
|
2022-01-12 17:35:14 +05:00
|
|
|
|
2022-01-12 17:28:27 +05:00
|
|
|
return services;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|