Projekt

Obecné

Profil

Stáhnout (892 Bajtů) Statistiky
| Větev: | Tag: | Revize:
1
using Core.Authentication;
2
using Core.Services.AnnotationService;
3
using Core.Services.DocumentService;
4
using Core.Services.TagService;
5
using Microsoft.AspNetCore.Builder;
6
using Microsoft.Extensions.DependencyInjection;
7

    
8
namespace Core.Services
9
{
10
    public class Registration
11
    {
12
        public static void RegisterServices(WebApplicationBuilder builder)
13
        {
14
            builder.Services.AddScoped<IUserService, UserServiceEF>();
15
            builder.Services.AddScoped<IDocumentService, DocumentServiceEF>();
16
            builder.Services.AddScoped<IAuthService, AuthService>();
17
            builder.Services.AddScoped<ITagService, TagServiceEF>();
18
            builder.Services.AddScoped<IAnnotationService, AnnotationServiceEF>();
19
            builder.Services.AddScoped<IHTMLService, HTMLService>();
20

    
21
            builder.Services.AddScoped<IJwtUtils, JwtUtils>();
22
        }
23
    }
24
}
    (1-1/1)