1
0
mirror of synced 2024-11-24 06:50:15 +01:00
TaikoLocalServer/Application/DependencyInjection.cs
2024-11-20 20:05:53 +08:00

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;
}
}