using Microsoft.Extensions.DependencyInjection.Extensions;
using System.Application.Services;
using System.Application.Services.Implementation;
// ReSharper disable once CheckNamespace
namespace Microsoft.Extensions.DependencyInjection
{
public static class ServiceCollectionExtensions
{
///
/// 尝试添加模型验证
///
///
///
public static IServiceCollection TryAddModelValidator(this IServiceCollection services)
{
services.TryAddSingleton();
return services;
}
}
}