15 lines
345 B
C#
15 lines
345 B
C#
|
using System.Reflection;
|
|||
|
using MediatR;
|
|||
|
using Microsoft.Extensions.DependencyInjection;
|
|||
|
|
|||
|
namespace Application;
|
|||
|
|
|||
|
public static class DependencyInjection
|
|||
|
{
|
|||
|
public static IServiceCollection AddApplication(this IServiceCollection services)
|
|||
|
{
|
|||
|
services.AddMediatR(Assembly.GetExecutingAssembly());
|
|||
|
|
|||
|
return services;
|
|||
|
}
|
|||
|
}
|