-
Notifications
You must be signed in to change notification settings - Fork 0
/
NezamEssIdentityApplicationModule.cs
33 lines (27 loc) · 1.13 KB
/
NezamEssIdentityApplicationModule.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
using Bonyan.AutoMapper;
using Bonyan.Modularity;
using Bonyan.Modularity.Abstractions;
using Bonyan.UserManagement.Application;
using Microsoft.Extensions.DependencyInjection;
using Nezam.Modular.ESS.Identity.Application.Auth;
using Nezam.Modular.ESS.Identity.Application.Employers.Jobs;
using Nezam.Modular.ESS.Identity.Application.Engineers.Jobs;
using Nezam.Modular.ESS.Identity.Domain;
using Nezam.Modular.ESS.Identity.Domain.User;
namespace Nezam.Modular.ESS.Identity.Application;
public class NezamEssIdentityApplicationModule : Module
{
public NezamEssIdentityApplicationModule()
{
DependOn<BonyanUserManagementApplicationModule<UserEntity>>();
DependOn<NezamEssIdentityDomainModule>();
}
public override Task OnConfigureAsync(ServiceConfigurationContext context)
{
context.Services.AddTransient<IAuthService, AuthService>();
context.Services.Configure<BonyanAutoMapperOptions>(c => { c.AddProfile<AuthProfile>(); });
// context.AddJob<EngineerSynchronizerJob>();
context.AddJob<EmployerSynchronizerJob>();
return base.OnConfigureAsync(context);
}
}