Projekt

Obecné

Profil

Stáhnout (1.05 KB) 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
    /// <summary>
11
    /// Add new services here
12
    /// </summary>
13
    public class Registration
14
    {
15
        /// <summary>
16
        /// Registers services
17
        /// </summary>
18
        /// <param name="builder"></param>
19
        public static void RegisterServices(WebApplicationBuilder builder)
20
        {
21
            builder.Services.AddScoped<IUserService, UserServiceEF>();
22
            builder.Services.AddScoped<IDocumentService, DocumentServiceEF>();
23
            builder.Services.AddScoped<IAuthService, AuthService>();
24
            builder.Services.AddScoped<ITagService, TagServiceEF>();
25
            builder.Services.AddScoped<IAnnotationService, AnnotationServiceEF>();
26
            builder.Services.AddScoped<IHTMLService, HTMLService>();
27

    
28
            builder.Services.AddScoped<IJwtUtils, JwtUtils>();
29
        }
30
    }
31
}
    (1-1/1)