Projekt

Obecné

Profil

Stáhnout (611 Bajtů) Statistiky
| Větev: | Tag: | Revize:
1
using Core.Authentication;
2
using Core.Services.DocumentService;
3
using Microsoft.AspNetCore.Builder;
4
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
            builder.Services.AddScoped<IDocumentService, DocumentServiceEF>();
14
            builder.Services.AddScoped<IAuthService, AuthService>();
15
            
16
            builder.Services.AddScoped<IJwtUtils, JwtUtils>();
17
        }
18
    }
19
}
    (1-1/1)