16 lines
413 B
C#
16 lines
413 B
C#
using System.Reflection;
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
namespace Application;
|
|
|
|
public static class DependencyInjection
|
|
{
|
|
public static IServiceCollection AddApplication(this IServiceCollection services)
|
|
{
|
|
services.AddMediatR(
|
|
configuration => configuration.RegisterServicesFromAssembly(Assembly.GetExecutingAssembly()));
|
|
|
|
|
|
return services;
|
|
}
|
|
} |