15 lines
441 B
C#
15 lines
441 B
C#
using FluentValidation;
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
namespace InboxIntel.Application;
|
|
|
|
public static class DependencyInjection
|
|
{
|
|
/// <summary>Registers Application-layer services (validators, etc.).</summary>
|
|
public static IServiceCollection AddApplication(this IServiceCollection services)
|
|
{
|
|
services.AddValidatorsFromAssembly(typeof(DependencyInjection).Assembly);
|
|
return services;
|
|
}
|
|
}
|