1
|
using Core.Authentication;
|
2
|
using Core.Services.DocumentService;
|
3
|
using Core.Services.TagService;
|
4
|
using Microsoft.AspNetCore.Builder;
|
5
|
using Microsoft.Extensions.DependencyInjection;
|
6
|
|
7
|
namespace Core.Services
|
8
|
{
|
9
|
public class Registration
|
10
|
{
|
11
|
public static void RegisterServices(WebApplicationBuilder builder)
|
12
|
{
|
13
|
builder.Services.AddScoped<IUserService, UserServiceEF>();
|
14
|
builder.Services.AddScoped<IDocumentService, DocumentServiceEF>();
|
15
|
builder.Services.AddScoped<IAuthService, AuthService>();
|
16
|
builder.Services.AddScoped<ITagService, TagServiceEF>();
|
17
|
|
18
|
builder.Services.AddScoped<IJwtUtils, JwtUtils>();
|
19
|
}
|
20
|
}
|
21
|
}
|