Files
jsmr/JSMR.Application/DI/ApplicationServiceCollectionExtensions.cs

20 lines
632 B
C#

using JSMR.Application.Tags.Commands.SetEnglishName;
using JSMR.Application.Tags.Commands.UpdateTagStatus;
using Microsoft.Extensions.DependencyInjection;
namespace JSMR.Application.DI;
public static class ApplicationServiceCollectionExtensions
{
public static IServiceCollection AddApplication(this IServiceCollection services)
{
// Handlers / Use-cases
//services.AddScoped<SearchVoiceWorksHandler>();
//services.AddScoped<ScanVoiceWorksHandler>();
services.AddScoped<SetTagEnglishNameHandler>();
services.AddScoped<UpdateTagStatusHandler>();
return services;
}
}