Some checks reported errors
continuous-integration/drone/push Build encountered an error
Signed-off-by: kjuulh <contact@kjuulh.io>
16 lines
465 B
C#
16 lines
465 B
C#
global using System;
|
|
global using System.Linq;
|
|
global using System.Threading.Tasks;
|
|
global using System.Collections.Generic;
|
|
using System.Reflection;
|
|
using MediatR;
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
namespace Todo.Core;
|
|
|
|
public static class DependencyInjection
|
|
{
|
|
public static IServiceCollection AddCore(this IServiceCollection services)
|
|
=> services.AddMediatR(cfg => cfg.RegisterServicesFromAssembly(Assembly.GetExecutingAssembly()));
|
|
}
|