Fix ITextMatchService lifetime

This commit is contained in:
Sergey Nazarov 2024-03-23 10:00:12 +04:00
parent 621399e7c9
commit 374ee606f8

View File

@ -15,7 +15,7 @@ public static class ServiceCollectionExtensions
// Add registrations here
services.AddRebusHandler<MessageReceivedHandler>();
services.AddSingleton<ITextMatchService, TextMatchService>();
services.AddScoped<ITextMatchService, TextMatchService>();
services.AddSingleton<ITextMatchRepository, InMemoryTextMatchRepository>();
return services;