コード例 #1
0
 /// <summary>
 /// Конструктор
 /// </summary>
 public RegistrationUserAdapter(UserManager <ApplicationUser> userManager, IEmailService emailService, IManagerProfile managerProfile)
 {
     _userManager    = userManager;
     _emailService   = emailService;
     _managerProfile = managerProfile;
     //var confFileName = Path.Combine(
     //    Path.GetDirectoryName(GetType().Assembly.Location),
     //    $"RegistrationService.config");
     //var build = new ConfigurationBuilder().AddXmlFile(confFileName);
     //_configuration = build.Build();
 }
コード例 #2
0
 /// <summary>
 /// Конструктор
 /// </summary>
 public RegistrationController(IRegistrationUserAdapter registrationUserAdapter, IManagerProfile managerProfile) : base(ModuleName)
 {
     _registrationUserAdapter = registrationUserAdapter;
     _managerProfile          = managerProfile;
 }
コード例 #3
0
 public AdministrationController(IManagerProfile managerProfile, RoleManager <ApplicationRole> roleManager) : base(ModuleName)
 {
     _managerProfile = managerProfile;
     _roleManager    = roleManager;
 }