예제 #1
0
 public AccountManager(
     IMedioClinicUserManager <MedioClinicUser, int> userManager,
     IMedioClinicSignInManager <MedioClinicUser, int> signInManager,
     IAuthenticationManager authenticationManager,
     IAvatarRepository avatarRepository,
     IBusinessDependencies dependencies)
     : base(userManager, dependencies)
 {
     SignInManager         = signInManager ?? throw new ArgumentNullException(nameof(signInManager));
     AuthenticationManager = authenticationManager ?? throw new ArgumentNullException(nameof(authenticationManager));
     AvatarRepository      = avatarRepository ?? throw new ArgumentNullException(nameof(avatarRepository));
 }
 public AccountManager(
     ILogger <AccountManager> logger,
     IUrlHelperFactory urlHelperFactory,
     IActionContextAccessor actionContextAccessor,
     IMessageService messageService,
     IMedioClinicUserManager <MedioClinicUser> userManager,
     IMedioClinicSignInManager <MedioClinicUser> signInManager
     )
     : base(logger, userManager)
 {
     _urlHelperFactory      = urlHelperFactory ?? throw new ArgumentNullException(nameof(urlHelperFactory));
     _actionContextAccessor = actionContextAccessor ?? throw new ArgumentNullException(nameof(actionContextAccessor));
     _messageService        = messageService ?? throw new ArgumentNullException(nameof(messageService));
     _signInManager         = signInManager ?? throw new ArgumentNullException(nameof(signInManager));
 }