29 lines
762 B
C#
Executable File
29 lines
762 B
C#
Executable File
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Threading.Tasks;
|
|
using Auth.Core;
|
|
using Auth.Core.Services;
|
|
using Auth.Core.Services.Auth;
|
|
|
|
using Auth.Core.Services.HR.Users;
|
|
using Auth.Domain.Entities;
|
|
// using ECommerce_API.Config.AuthorizeHandlers;
|
|
using Microsoft.AspNetCore.Authorization;
|
|
|
|
namespace Auth.API.Config;
|
|
|
|
public static class RegisteringServices
|
|
{
|
|
public static IServiceCollection RegisterServices(this IServiceCollection services)
|
|
{
|
|
// services.AddScoped<EmailService, EmailService>();
|
|
services.AddScoped<TokenGenerator>();
|
|
services.AddScoped<UserService>();
|
|
services.AddScoped<AuthService>();
|
|
services.AddScoped<EmailService>();
|
|
|
|
return services;
|
|
}
|
|
}
|