Update SurveyLib and moved all AddScoped to DI methods
This commit is contained in:
parent
d73e0a104f
commit
7ccf8cb018
4 changed files with 49 additions and 20 deletions
|
|
@ -0,0 +1,16 @@
|
|||
using Microsoft.Extensions.Configuration;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using SurveyBackend.Core.Repositories;
|
||||
using SurveyBackend.Infrastructure.Repositories;
|
||||
|
||||
namespace SurveyBackend.Infrastructure;
|
||||
|
||||
public static class DependencyInjection
|
||||
{
|
||||
public static IServiceCollection AddSurveyBackendInfrastructure(this IServiceCollection services)
|
||||
{
|
||||
services.AddScoped<IUserRepository, UserRepository>();
|
||||
|
||||
return services;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue