aswi20220x00-gitlab/Backend/Core/Services/Registration.cs @ c349bab3
1 |
using Core.Authentication; |
---|---|
2 |
using Microsoft.AspNetCore.Builder; |
3 |
using Microsoft.Extensions.DependencyInjection; |
4 |
|
5 |
namespace Core.Services |
6 |
{
|
7 |
public class Registration |
8 |
{
|
9 |
public static void RegisterServices(WebApplicationBuilder builder) |
10 |
{
|
11 |
builder.Services.AddScoped<IUserService, UserServiceEF>(); |
12 |
builder.Services.AddScoped<IAuthService, AuthService>(); |
13 |
|
14 |
builder.Services.AddScoped<IJwtUtils, JwtUtils>(); |
15 |
}
|
16 |
}
|
17 |
}
|