Files
jsmr/JSMR.Application/DI/ApplicationServiceCollectionExtensions.cs
Brian Bicknell 340c62d18b
All checks were successful
ci / build-test (push) Successful in 2m16s
ci / publish-image (push) Has been skipped
Added worker app.
2026-02-01 21:41:23 -05:00

30 lines
1006 B
C#

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