1
0
mirror of synced 2024-11-28 00:20:53 +01:00
TaikoLocalServer/Application/DependencyInjection.cs

16 lines
413 B
C#
Raw Normal View History

2024-11-20 13:05:53 +01:00
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;
}
}