Projekt

Obecné

Profil

Stáhnout (611 Bajtů) Statistiky
| Větev: | Tag: | Revize:
1 c349bab3 Lukáš Vlček
using Core.Authentication;
2 24e1c89d Vojtěch Bartička
using Core.Services.DocumentService;
3 c349bab3 Lukáš Vlček
using Microsoft.AspNetCore.Builder;
4 897851f8 Vojtěch Bartička
using Microsoft.Extensions.DependencyInjection;
5
6
namespace Core.Services
7
{
8
    public class Registration
9
    {
10
        public static void RegisterServices(WebApplicationBuilder builder)
11
        {
12
            builder.Services.AddScoped<IUserService, UserServiceEF>();
13 24e1c89d Vojtěch Bartička
            builder.Services.AddScoped<IDocumentService, DocumentServiceEF>();
14 c349bab3 Lukáš Vlček
            builder.Services.AddScoped<IAuthService, AuthService>();
15
            
16
            builder.Services.AddScoped<IJwtUtils, JwtUtils>();
17 897851f8 Vojtěch Bartička
        }
18
    }
19 c349bab3 Lukáš Vlček
}